Udostępnij za pośrednictwem


Set-FASTSearchMetadataManagedProperty

 

Applies to: SharePoint Server 2010

Updates the features of a managed property.

Syntax

Set-FASTSearchMetadataManagedProperty -ManagedProperty <ManagedProperty> [-DecimalPlaces <Nullable>] [-Description <String>] [-IsMapped <Nullable>] [-MaxIndexSize <Nullable>] [-MaxResultSize <Nullable>] [-MergeCrawledProperties <Nullable>] [-Queryable <Nullable>] [-RefinementEnabled <Nullable>] [-SortableType <Nullable>] [-StemmingEnabled <Nullable>] [-SummaryType <Nullable>]

Set-FASTSearchMetadataManagedProperty -Name <String> [-DecimalPlaces <Nullable>] [-Description <String>] [-IsMapped <Nullable>] [-MaxIndexSize <Nullable>] [-MaxResultSize <Nullable>] [-MergeCrawledProperties <Nullable>] [-Queryable <Nullable>] [-RefinementEnabled <Nullable>] [-SortableType <Nullable>] [-StemmingEnabled <Nullable>] [-SummaryType <Nullable>]

Detailed Description

This cmdlet updates the properties/features of an existing managed property. This cmdlet contains more than one parameter set. You may only use parameters from one parameter set, and you may not combine parameters from different parameter sets. When doing simple operations, there is no difference between using the ManagedProperty versus the Name parameter. The only difference is when using the Name parameter you look up the managed property each time, while when using the ManagedProperty parameter you use the object you already have a reference to. However, when dealing with operations involving a large set of objects (for example iterating over all categories), avoiding extra lookups by name can be slightly more efficient. For more information about how to use parameter sets, see Cmdlet Parameter Sets.

Several of these changes require that the content be recrawled/re-fed to take full effect. If, for example, a managed property is made searchable (Queryable) it will only become searchable after the content is updated. During the recrawl/re-feed, the new content will be searchable, while the old will not.

For properties such as whether the managed property should have sorting enabled (SortableType), the managed property defaults to the value '0' until the content has been re-fed/recrawled.

Parameters

Parameter Required Type Description

ManagedProperty

Required

Microsoft.SharePoint.Search.Extended.Administration.Schema.ManagedProperty

The managed property object to modify.

Name

Required

System.String

The name of the managed property to modify.

Description

Optional

System.String

A text string describing the managed property's use.

MergeCrawledProperties

Optional

Boolean

This Boolean value controls whether or not multiple crawled properties mapped to this managed property are merged when multiple crawled properties are present in the input.

If not set, only the first element of the first non-empty crawled property is stored in the managed property. The one that is chosen is the crawled property that was mapped to the managed property first.

The content must be re-fed/recrawled for this change to take effect.

This property must also be set to true to include all values from a multivalued crawled property. If set to false, only the first value from a multivalued crawled property is included.

This property must also be set to true to include all values from a multivalued crawled property. If set to false, only the first value from a multivalued crawled property is included.

Queryable

Optional

Boolean

This Boolean value specifies whether or not the managed property is directly searchable on its own (and not only as part of a full text index).

If not set, it can only be searched when included in a full text index.

The content must be recrawled/re-fed again for this change to take effect.

RefinementEnabled

Optional

Boolean

This Boolean value specifies whether or not a refiner is available for the managed property.

Refiners group search results based on the values of individual managed properties from the complete result set of a query. Refiners are often used to navigate the result set in the front-end application.

After enabling refinement on a managed property, the content must be recrawled/re-fed for the change to take effect.

SortableType

Optional

The sorting type of the managed property. Valid values are:

-- 0 (“sorting disabled”) specifies that the managed property is not sortable.

-- 1 (“sorting enabled”) specifies that the managed property is sortable.

-- 2 (“latent sorting”) specifies that the managed property is prepared for sorting, but must be changed to “sorting enabled” for sorting to be supported.

In contrast to switching from “sorting disabled” to “sorting enabled”, this does not require reprocessing of data.

Setting sorting to latent on a managed property can help reduce memory resource usage, while keeping the option of enabling sorting quickly at a later date.

If a managed property is changed from “sorting disabled” to “sorting enabled”, the sort value will default to 0 for all documents that have not been recrawled/re-fed.

Managed properties of the type datetime always have sorting enabled.

SummaryType

Optional

The type of summary to return for the managed property. Valid values are:

-- 0 (summary disabled), no content is returned for this managed property.

-- 1 (static), the full value of the managed property is returned.

-- 2 (dynamic), hit highlighting is done on the content of the managed property based on the query terms, and a hit highlighted summary is returned.

The content must be recrawled/re-fed for any change in this setting to take effect, except when disabling summary generation.

StemmingEnabled

Optional

Enables or disables stemming for the managed property.

Stemming is the process of reducing words to their base form, or expanding to all known forms, to increase recall. Whether stemming is done through reduction or expansion depends on the content language.

The content must be recrawled/re-fed for this to take effect.

DecimalPlaces

Optional

This integer parameter specifies how many decimal places should be used for the managed property.

A higher number of decimals provides a more precise result, but reduces the minimum and maximum number size that can be stored in the managed property.

MaxIndexSize

Optional

This integer parameter sets the maximum number of kilobytes indexed for the managed property.

Valid values range from 0 through 2097151 (2GB).

The measured value equals the data stored prior to indexing and is slightly larger than the effective number of kilobytes that is searchable for the managed property.

MaxResultSize

Optional

This integer parameter sets the maximum number of kilobytes that can be returned for this managed property.

If a managed property's content is longer than this, then the returned version of the managed property is truncated to the specified value.

Valid values are from 0 through 2097151 (2GB).

If the summary type of the managed property is dynamic, then this size refers to the size of the source data used for generating the hit highlighted summary.

IsMapped

Optional

Boolean

This Boolean parameter specifies whether or not the managed property is mapped to support Alternate Access Mappings in SharePoint.

Input Types

Return Types

Example

---------------EXAMPLE 1-----------------

$title = Get-FASTSearchMetadataManagedProperty -name title
Set-FASTSearchMetadataManagedProperty -ManagedProperty $title -Refinement 1

This example enables refinement for the managed property “title”. Content must be re-fed/recrawled to populate the refinement. Until it is populated, the refinement defaults to having no value.

---------------EXAMPLE 2-----------------

$title = Get-FASTSearchMetadataManagedProperty -name title
Set-FASTSearchMetadataManagedProperty -ManagedProperty $title -Queryable 1

This example enables searching against the “title” managed property. A front-end application can search in the specified managed property using the syntax: “title:<search terms>”.

Relevancy is not calculated for such queries (unlike searches against the full text indexes), and only the quality component of the relevancy score is available.

The content must be recrawled/re-fed for this to take effect.

---------------EXAMPLE 3-----------------

$title = Get-FASTSearchMetadataManagedProperty -name title
Set-FASTSearchMetadataManagedProperty -ManagedProperty $title -SummaryType 1

This example changes the summary type for the managed property named “title” from dynamic to static. A static summary type means that the entire contents of the managed property is returned as part of the item summary.

The content must be recrawled/re-fed for this to take effect.

See Also

Reference

Get-FASTSearchMetadataManagedProperty
New-FASTSearchMetadataManagedProperty
Remove-FASTSearchMetadataManagedProperty