Set-SPEnterpriseSearchMetadataManagedProperty

设置元数据托管属性的属性。

语法

Set-SPEnterpriseSearchMetadataManagedProperty
   [-AssignmentCollection <SPAssignmentCollection>]
   [-Confirm]
   [-DefaultForQueryIndependentRank <UInt32>]
   [-Description <String>]
   [-EnabledForQueryIndependentRank <Boolean>]
   [-EnabledForScoping <Boolean>]
   [-FullTextQueriable <Boolean>]
   -Identity <ManagedPropertyPipeBind>
   [-IncludeInAlertSignature <Boolean>]
   [-IncludeInMd5 <Boolean>]
   [-Name <String>]
   [-NameNormalized <Boolean>]
   [-NoWordBreaker <Boolean>]
   [-RemoveDuplicates <Boolean>]
   [-RespectPriority <Boolean>]
   [-Retrievable <Boolean>]
   [-SafeForAnonymous <Boolean>]
   [-SearchApplication <SearchServiceApplicationPipeBind>]
   [-SiteCollection <Guid>]
   [-Tenant <Guid>]
   [-UserFlags <Int16>]
   [-WhatIf]
   [<CommonParameters>]

说明

This cmdlet updates the properties of a managed property. It is typically used to change the name or description of a managed property. SPEnterpriseSearchMetadataManagedProperty represents a managed property in the enterprise search metadata property schema.

有关适用于 SharePoint 产品的 Windows PowerShell 的权限和最新信息,请参阅 SharePoint Server cmdlet

示例

------------------示例------------------

$ssa = Get-SPEnterpriseSearchServiceApplication
Set-SPEnterpriseSearchMetadataManagedProperty -SearchApplication $ssa -Identity UserName -EnabledForScoping $true

此示例将默认 Search Service 应用程序中名为 UserName 的托管属性的 EnabledForScoping 属性设置为 true。

参数

-Confirm

执行命令前,看到确认提示。 有关详细信息,请键入以下命令:get-help about_commonparameters

Type:SwitchParameter
Aliases:cf
Position:Named
Default value:None
Accept pipeline input:False
Accept wildcard characters:False
Applies to:SharePoint Server Subscription Edition

-DefaultForQueryIndependentRank

指定在独立于查询的排名(相关性)中使用时托管属性是必需的。

注意:Null 表示该值未更改。

Type:UInt32
Aliases:def
Position:Named
Default value:None
Accept pipeline input:False
Accept wildcard characters:False
Applies to:SharePoint Server Subscription Edition

-EnabledForQueryIndependentRank

指定在独立于查询的分级工作的自定义分级模型中使用时,该托管属性是强制的。

键入的值必须属于自定义模型 XML 中独立于查询的下列分级功能之一:

  • queryIndependentFeature
  • categoryFeature
  • languageFeature

注意:Null 表示该值未更改。

Type:Boolean
Aliases:qir
Position:Named
Default value:None
Accept pipeline input:False
Accept wildcard characters:False
Applies to:SharePoint Server Subscription Edition

-EnabledForScoping

指定可在范围定义中使用托管属性。

注意:Null 表示该值未更改。

Type:Boolean
Aliases:e
Position:Named
Default value:None
Accept pipeline input:False
Accept wildcard characters:False
Applies to:SharePoint Server Subscription Edition

-FullTextQueriable

指定可在企业级搜索 SQL 查询中使用托管属性。

注意:Null 表示该值未更改。

Type:Boolean
Aliases:f
Position:Named
Default value:None
Accept pipeline input:False
Accept wildcard characters:False
Applies to:SharePoint Server Subscription Edition

-Identity

指定要更新的托管属性。

键入的值必须为托管属性的有效名称(如 ManagedProperty1)或有效 ManagedProperty 对象的实例。

Type:ManagedPropertyPipeBind
Position:Named
Default value:None
Accept pipeline input:True
Accept wildcard characters:False
Applies to:SharePoint Server Subscription Edition

-IncludeInAlertSignature

指定此托管属性是否应包括在警报签名中。

Type:Boolean
Aliases:ia
Position:Named
Default value:None
Accept pipeline input:False
Accept wildcard characters:False
Applies to:SharePoint Server Subscription Edition

-IncludeInMd5

指定在爬网程序使用的哈希中包含托管属性以确定文档是否已更改。

注意:Null 表示该值未更改。

Type:Boolean
Aliases:im5
Position:Named
Default value:None
Accept pipeline input:False
Accept wildcard characters:False
Applies to:SharePoint Server Subscription Edition

-NameNormalized

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.

注意:Null 表示该值未更改。

Type:Boolean
Aliases:nn
Position:Named
Default value:None
Accept pipeline input:False
Accept wildcard characters:False
Applies to:SharePoint Server Subscription Edition

-NoWordBreaker

指定分词系统将处理此托管属性的值。

注意:Null 表示该值未更改。

Type:Boolean
Aliases:nw
Position:Named
Default value:None
Accept pipeline input:False
Accept wildcard characters:False
Applies to:SharePoint Server Subscription Edition

-RemoveDuplicates

指定将删除重复的托管属性值。

Type:Boolean
Aliases:rd
Position:Named
Default value:None
Accept pipeline input:False
Accept wildcard characters:False
Applies to:SharePoint Server Subscription Edition

-RespectPriority

指定当映射的已爬网属性包含多个值并将 RespectPriority 设置为 true 时,仅复制第一个映射的已爬网属性。 否则将复制具有值的所有已映射的已爬网属性。

注意:Null 表示该值未更改。

Type:Boolean
Aliases:rp
Position:Named
Default value:None
Accept pipeline input:False
Accept wildcard characters:False
Applies to:SharePoint Server Subscription Edition

-Retrievable

指定该托管属性的值是否可检索。

注意:Null 表示该值未更改。

Type:Boolean
Aliases:r
Position:Named
Default value:None
Accept pipeline input:False
Accept wildcard characters:False
Applies to:SharePoint Server Subscription Edition

-SafeForAnonymous

指定是否允许匿名搜索的搜索结果中显示该属性的内容。

Type:Boolean
Aliases:sfa
Position:Named
Default value:None
Accept pipeline input:False
Accept wildcard characters:False
Applies to:SharePoint Server Subscription Edition

-SearchApplication

指定包含托管属性集合的搜索应用程序。

键入的值必须为有效的搜索应用程序名称(如 SearchApp1)或有效的 SearchServiceApplication 对象的实例。

Type:SearchServiceApplicationPipeBind
Position:Named
Default value:None
Accept pipeline input:False
Accept wildcard characters:False
Applies to:SharePoint Server Subscription Edition

-SiteCollection

指定返回的托管属性位于网站集 (SPSite) 范围内。

键入的值必须为用于指定属性集的 12345678-90ab-cdef-1234-567890bcdefgh 形式的有效 GUID。

Type:Guid
Position:Named
Default value:None
Accept pipeline input:False
Accept wildcard characters:False
Applies to:SharePoint Server Subscription Edition

-Tenant

指定返回的托管属性位于租户范围内。

键入的值必须为用于指定属性集的 12345678-90ab-cdef-1234-567890bcdefgh 形式的有效 GUID。

Type:Guid
Position:Named
Default value:None
Accept pipeline input:False
Accept wildcard characters:False
Applies to:SharePoint Server Subscription Edition

-UserFlags

保留供以后使用。

注意:Null 表示该值未更改。

Type:Int16
Aliases:u
Position:Named
Default value:None
Accept pipeline input:False
Accept wildcard characters:False
Applies to:SharePoint Server Subscription Edition

-WhatIf

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

Type:SwitchParameter
Aliases:wi
Position:Named
Default value:None
Accept pipeline input:False
Accept wildcard characters:False
Applies to:SharePoint Server Subscription Edition

-名称

指定托管属性的名称。

键入的值必须是有效的托管属性名称,例如,ManagedProperty1。

注意:Null 表示该值未更改。

Type:String
Aliases:n
Position:Named
Default value:None
Accept pipeline input:False
Accept wildcard characters:False
Applies to:SharePoint Server Subscription Edition

-工作分配

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.

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.

Type:SPAssignmentCollection
Position:Named
Default value:None
Accept pipeline input:True
Accept wildcard characters:False
Applies to:SharePoint Server Subscription Edition

-描述

向元数据托管属性添加说明。

键入的值必须为有效的字符串。

注意:Null 表示该值未更改。

Type:String
Aliases:d
Position:Named
Default value:None
Accept pipeline input:False
Accept wildcard characters:False
Applies to:SharePoint Server Subscription Edition