Export (0) Print
Expand All
Expand Minimize

New-SPEnterpriseSearchMetadataManagedProperty

 

Applies to: SharePoint Server 2013 Standard, SharePoint Server 2013 Enterprise, SharePoint Foundation 2013

Topic Last Modified: 2014-06-25

Adds a managed property to a shared search application.

New-SPEnterpriseSearchMetadataManagedProperty -Name <String> -SearchApplication <SearchServiceApplicationPipeBind> -Type <Int32> [-AssignmentCollection <SPAssignmentCollection>] [-Confirm [<SwitchParameter>]] [-DefaultForQueryIndependentRank <UInt32>] [-Description <String>] [-EnabledForQueryIndependentRank <$true | $false>] [-EnabledForScoping <$true | $false>] [-FullTextQueriable <$true | $false>] [-IncludeInAlertSignature <$true | $false>] [-IncludeInMd5 <$true | $false>] [-NameNormalized <$true | $false>] [-NoWordBreaker <$true | $false>] [-Queryable <$true | $false>] [-RemoveDuplicates <$true | $false>] [-RespectPriority <$true | $false>] [-Retrievable <$true | $false>] [-SafeForAnonymous <$true | $false>] [-SiteCollection <Guid>] [-Tenant <Guid>] [-UserFlags <Int16>] [-WhatIf [<SwitchParameter>]]

------------------EXAMPLE------------------

$searchapp = Get-SPEnterpriseSearchServiceApplication

New-SPEnterpriseSearchMetadataManagedProperty -Name AboutMeUpdate -SearchApplication $searchapp -Type 4

This example creates a new managed property named AboutMeUpdate in the default search service application, and sets it type to DateTime.

This cmdlet creates a new managed property. SPEnterpriseSearchMetadataManagedProperty represents a managed property in the enterprise search metadata property schema.

 

Parameter Required Type Description

Name

Required

System.String

Specifies the name of the new managed property.

The type must be a valid name of a managed property, for example, ManagedProperty1.

SearchApplication

Required

Microsoft.Office.Server.Search.Cmdlet.SearchServiceApplicationPipeBind

Specifies the search application that contains the managed property collection.

The type must be a valid search application name (for example, SearchApp1), or an instance of a valid SearchServiceApplication object.

Type

Required

System.Int32

Specifies the data type of the new managed property.

The type must be one of the following data types:

1 = Text

2 = Integer

3 = Decimal

4 = DateTime

5 = YesNo

6 = Binary

7 = Double

AssignmentCollection

Optional

Microsoft.SharePoint.PowerShell.SPAssignmentCollection

Manages objects for the purpose of proper disposal. Use of objects, such as SPWeb or SPSite, can use large amounts of memory and use of these objects in Windows PowerShell scripts requires proper memory management. Using the SPAssignment object, you can assign objects to a variable and dispose of the objects after they are needed to free up memory. When SPWeb, SPSite, or SPSiteAdministration objects are used, the objects are automatically disposed of if an assignment collection or the Global parameter is not used.

NoteNote:
When the Global parameter is used, all objects are contained in the global store. If objects are not immediately used, or disposed of by using the Stop-SPAssignment command, an out-of-memory scenario can occur.

Confirm

Optional

System.Management.Automation.SwitchParameter

Prompts you for confirmation before executing the command. For more information, type the following command: get-help about_commonparameters

DefaultForQueryIndependentRank

Optional

System.UInt32

Specifies that the managed property is mandatory when it is used in query-independent rank (relevance).

Description

Optional

System.String

Adds a description to the metadata managed property.

The type must be a valid string.

EnabledForQueryIndependentRank

Optional

System.Boolean

Specifies that the managed property is mandatory when it is used in the custom ranking model for the query-independent work of ranking.

The type must be one of the following query-independent ranking features in the custom model XML:

  • queryIndependentFeature

  • categoryFeature

  • languageFeature

EnabledForScoping

Optional

System.Boolean

Specifies that the managed property can be used in a scope definition.

FullTextQueriable

Optional

System.Boolean

Specifies that the managed property can be used in enterprise search SQL queries.

IncludeInAlertSignature

Optional

System.Boolean

PARAMVALUE: $true | $false

IncludeInMd5

Optional

System.Boolean

Specifies that the managed property is included in the hash used by the crawler to determine whether a document has changed.

NameNormalized

Optional

System.Boolean

Specifies if the values of the managed property should be normalized, that is, enable to return results independent of letter casing and diacritics used in the query. If value is set to true, the values are normalized.

NoWordBreaker

Optional

System.Boolean

Specifies that the values for this managed property are processed by a word breaker.

Queryable

Optional

System.Boolean

Specifies whether this managed property is queryable or not.

RemoveDuplicates

Optional

System.Boolean

Specifies that duplicate values for the managed property are removed.

RespectPriority

Optional

System.Boolean

Specifies that when a mapped crawled property contains multiple values, and RespectPriority is set to true, only the first mapped crawled property is copied. Otherwise, all mapped crawled properties that have a value are copied.

Retrievable

Optional

System.Boolean

Specifies whether this managed property is retrievable or not.

SafeForAnonymous

Optional

System.Boolean

PARAMVALUE: $true | $false

SiteCollection

Optional

System.Guid

Specifies that the managed properties returned are to be within the scope of a site collection (SPSite).

The type must be a valid GUID that specifies the property set in the form 12345678-90ab-cdef-1234-567890bcdefgh.

Tenant

Optional

System.Guid

Specifies that the managed properties returned are to be within the scope of a tenant.

The type must be a valid GUID that specifies the property set in the form 12345678-90ab-cdef-1234-567890bcdefgh.

UserFlags

Optional

System.Int16

Reserved for future use.

WhatIf

Optional

System.Management.Automation.SwitchParameter

Displays a message that describes the effect of the command instead of executing the command. For more information, type the following command: get-help about_commonparameters

Was this page helpful?
(1500 characters remaining)
Thank you for your feedback
Show:
© 2014 Microsoft