Get-SPEnterpriseSearchMetadataCrawledProperty

傳回編目屬性。

Syntax

Get-SPEnterpriseSearchMetadataCrawledProperty
   [-AssignmentCollection <SPAssignmentCollection>]
   [-Category <CategoryPipeBind>]
   [-Limit <String>]
   [-Name <String>]
   [-PropSet <Guid>]
   -SearchApplication <SearchServiceApplicationPipeBind>
   [-SiteCollection <Guid>]
   [-Tenant <Guid>]
   [-VariantType <Int32>]
   [<CommonParameters>]

Description

This cmdlet reads a CrawledProperty object for a crawled property that was created or updated. You should run this cmdlet when the search functionality is configured for the first time, and after new crawled properties are discovered during a crawl. If the Name parameter is not specified, this cmdlet returns all crawled properties for the specified category for the specified search application. If neither the Name nor the Category parameter is specified, this cmdlet returns all crawled properties for the specified search application.

如需適用於 SharePoint 產品的 Windows PowerShell 權限及最新資訊,請參閱線上文件 SharePoint Server Cmdlet

範例

範例 1

$ssa = Get-SPEnterpriseSearchServiceApplication
$cat = Get-SPEnterpriseSearchMetadataCategory -SearchApplication $ssa -Identity People
Get-SPEnterpriseSearchMetadataCrawledProperty -SearchApplication $ssa -Category $cat -Limit 1

此範例會傳回預設 Search Service 應用程式之 PeopleSearch_Scope 中繼資料類別中的第一個編目屬性。

範例 2

$ssa = Get-SPEnterpriseSearchServiceApplication
$cat = Get-SPEnterpriseSearchMetadataCategory -SearchApplication $ssa -Identity People
$crawledProp = Get-SPEnterpriseSearchMetadataCrawledProperty -SearchApplication $ssa -Category $cat -Name urn:schemas-microsoft-com:sharepoint:portal:profile:CellPhone
$crawledProp.GetMappedManagedProperties()

此範例會傳回預設搜尋服務應用程式的PeopleSearch_Scope中繼資料類別中特定編目屬性的對應。

參數

-AssignmentCollection

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

-Category

指定要傳回之編目屬性的中繼資料類別。

此類型必須是格式為 12345678-90ab-cdef-1234-567890bcdefgh 的有效 GUID、有效的中繼資料類別名稱 (例如 MetadataCategory1),或有效的 Category 物件執行個體。

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

-Limit

指定可傳回的項目數上限。

若要傳回所有可能的結果,可指定 ALL。

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

-PropSet

指定傳回指定屬性集的編目屬性。 屬性集屬於一個編目屬性類別。

此類型必須是可以 12345678-90ab-cdef-1234-567890bcdefgh 格式指定屬性集的有效 GUID。

Type:Guid
Aliases:p
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:True
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

-VariantType

指定傳回使用指定 Variant 類型的編目屬性。

此類型必須是指定屬性集之 Variant 資料類型的整數。

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

-名稱

指定要擷取的編目屬性。

此類型必須是有效的編目屬性名稱,例如 「urn:schemas-microsoft-com:sharepoint:portal:profile:UserName」

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