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>]
说明
此 cmdlet 可更新托管属性的属性。 它通常用来更改托管属性的名称或说明。 SPEnterpriseSearchMetadataManagedProperty 表示企业级搜索元数据属性架构中的一个托管属性。
有关适用于 SharePoint 产品的 Windows PowerShell 的权限和最新信息,请参阅 SharePoint Server cmdlet。
示例
------------------示例------------------
$ssa = Get-SPEnterpriseSearchServiceApplication
Set-SPEnterpriseSearchMetadataManagedProperty -SearchApplication $ssa -Identity UserName -EnabledForScoping $true
此示例将默认 Search Service 应用程序中名为 UserName 的托管属性的 EnabledForScoping 属性设置为 true。
参数
-AssignmentCollection
管理对象以便正确进行处理。 使用 SPWeb 或 SPSite 等对象可能会耗用大量内存,而且在 Windows PowerShell 脚本中使用这些对象需要正确管理内存。 通过使用 SPAssignment 对象,可以将对象分配给变量,然后在不需要这些对象时对它们进行处理,以释放内存。 在使用 SPWeb、SPSite 或 SPSiteAdministration 对象时,如果不使用分配集合或 Global 参数,则会自动处理这些对象。
使用全局参数时,所有对象均包含在全局存储中。
如果未立即使用对象,或未通过使用 Stop-SPAssignment
命令来处理对象,则可能会发生内存不足的情况。
Type: | SPAssignmentCollection |
Position: | Named |
Default value: | None |
Required: | False |
Accept pipeline input: | True |
Accept wildcard characters: | False |
Applies to: | SharePoint Server Subscription Edition |
-Confirm
执行命令前,看到确认提示。
有关详细信息,请键入以下命令:get-help about_commonparameters
Type: | SwitchParameter |
Aliases: | cf |
Position: | Named |
Default value: | None |
Required: | False |
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 |
Required: | False |
Accept pipeline input: | False |
Accept wildcard characters: | False |
Applies to: | SharePoint Server Subscription Edition |
-Description
向元数据托管属性添加说明。
键入的值必须为有效的字符串。
注意:Null 表示该值未更改。
Type: | String |
Aliases: | d |
Position: | Named |
Default value: | None |
Required: | False |
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 |
Required: | False |
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 |
Required: | False |
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 |
Required: | False |
Accept pipeline input: | False |
Accept wildcard characters: | False |
Applies to: | SharePoint Server Subscription Edition |
-Identity
指定要更新的托管属性。
键入的值必须为托管属性的有效名称(如 ManagedProperty1)或有效 ManagedProperty 对象的实例。
Type: | ManagedPropertyPipeBind |
Position: | Named |
Default value: | None |
Required: | True |
Accept pipeline input: | True |
Accept wildcard characters: | False |
Applies to: | SharePoint Server Subscription Edition |
-IncludeInAlertSignature
指定此托管属性是否应包括在警报签名中。
Type: | Boolean |
Aliases: | ia |
Position: | Named |
Default value: | None |
Required: | False |
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 |
Required: | False |
Accept pipeline input: | False |
Accept wildcard characters: | False |
Applies to: | SharePoint Server Subscription Edition |
-Name
指定托管属性的名称。
键入的值必须是有效的托管属性名称,例如,ManagedProperty1。
注意:Null 表示该值未更改。
Type: | String |
Aliases: | n |
Position: | Named |
Default value: | None |
Required: | False |
Accept pipeline input: | False |
Accept wildcard characters: | False |
Applies to: | SharePoint Server Subscription Edition |
-NameNormalized
指定是否应规范化托管属性的值,即启用以返回查询中使用的不区分字母大小写和音调符号的结果。 如果值设置为 True,则对值进行规范化处理。
注意:Null 表示该值未更改。
Type: | Boolean |
Aliases: | nn |
Position: | Named |
Default value: | None |
Required: | False |
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 |
Required: | False |
Accept pipeline input: | False |
Accept wildcard characters: | False |
Applies to: | SharePoint Server Subscription Edition |
-RemoveDuplicates
指定将删除重复的托管属性值。
Type: | Boolean |
Aliases: | rd |
Position: | Named |
Default value: | None |
Required: | False |
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 |
Required: | False |
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 |
Required: | False |
Accept pipeline input: | False |
Accept wildcard characters: | False |
Applies to: | SharePoint Server Subscription Edition |
-SafeForAnonymous
指定是否允许匿名搜索的搜索结果中显示该属性的内容。
Type: | Boolean |
Aliases: | sfa |
Position: | Named |
Default value: | None |
Required: | False |
Accept pipeline input: | False |
Accept wildcard characters: | False |
Applies to: | SharePoint Server Subscription Edition |
-SearchApplication
指定包含托管属性集合的搜索应用程序。
键入的值必须为有效的搜索应用程序名称(如 SearchApp1)或有效的 SearchServiceApplication 对象的实例。
Type: | SearchServiceApplicationPipeBind |
Position: | Named |
Default value: | None |
Required: | False |
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 |
Required: | False |
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 |
Required: | False |
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 |
Required: | False |
Accept pipeline input: | False |
Accept wildcard characters: | False |
Applies to: | SharePoint Server Subscription Edition |
-WhatIf
显示一条描述命令作用的消息,而不执行命令。
有关详细信息,请键入以下命令:get-help about_commonparameters
Type: | SwitchParameter |
Aliases: | wi |
Position: | Named |
Default value: | None |
Required: | False |
Accept pipeline input: | False |
Accept wildcard characters: | False |
Applies to: | SharePoint Server Subscription Edition |