Get-FASTSearchMetadataCategory

 

Applies to: SharePoint Server 2010

Retrieves a crawled property category.

Syntax

Get-FASTSearchMetadataCategory [[-Name] <String>]

Detailed Description

This cmdlet retrieves a category object from the installation. If no name is specified, it retrieves all categories in the system.

A category contains several crawled properties that are grouped together for setting properties that are common to them all.

Parameters

Parameter Required Type Description

Name

Optional

System.String

The name of the category to retrieve. If no category is specified, all categories are returned.

Input Types

Return Types

Example

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

Get-FASTSearchMetadataCategory

This example returns all available categories. This is the default behavior if you do not specify any parameters.

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

Get-FASTSearchMetadataCategory -Name SharePoint

This example returns one specific category, the “SharePoint” category.

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

Get-FASTSearchMetadataCategory -Name m*

This example returns all categories with a name that begins with “m”. Matching is case-insensitive.

---------------EXAMPLE 4-----------------

$category = Get-FASTSearchMetadataCategory -Name &quot;Enterprise Crawler&quot;
$category.GetAllCrawledProperties()|ForEach-Object {$_.Name}

This example returns all crawled properties that are mapped to the category named “Enterprise Crawler”. The example first retrieves the category, and then calls the category's GetAllCrawledProperties() function to list its crawled properties. It then iterates over the list of crawled properties and selects the name of each crawled property.

See Also

Reference

Remove-FASTSearchMetadataCategory
Set-FASTSearchMetadataCategory
New-FASTSearchMetadataCategory