New-FASTSearchMetadataManagedProperty
Applies to: SharePoint Server 2010
Creates a new managed property.
Syntax
New-FASTSearchMetadataManagedProperty -Name <String> -Type <Int32> [-Description <String>]
Detailed Description
This cmdlet creates a new managed property in the Microsoft FAST Search Server 2010 for SharePoint system. The managed property can be one of the following data types:
-- Text: UTF-8 encoded text string
-- Integer: Signed 64 bit integer
-- Boolean: true / false
-- Float: Double-precision 64-bit floating point, as specified in IEEE-754
-- Decimal: Integer with up to 27 decimals (number of decimals is set through the DecimalPlaces parameter of the managed property; see Set-FASTSearchMetadataManagedProperty).
-- Datetime: Date range in ISO8601 format. Valid date range is -29000-01-01T00:00:00,000 to 29000-12-31T23:59:59,999. Managed properties which have the type datetime always have sorting enabled.
See https://go.microsoft.com/fwlink/p/?LinkId=163234 for more detailed information about the valid value ranges for each of these data types, and how illegal values are handled.
For IEEE-754, see https://go.microsoft.com/fwlink/p/?LinkID=188655.
For details about the options that can be set on a managed property, see Set-FASTSearchMetadataManagedProperty.
Parameters
Parameter | Required | Type | Description |
---|---|---|---|
Name |
Required |
System.String |
The name of the new managed property. |
Type |
Required |
System.Int32 |
An integer representing the data type of the new managed property. Valid values are: -- 1 (Text) -- 2 (Integer) -- 3 (Boolean) -- 4 (Float) -- 5 (Decimal) -- 6 (Datetime) |
Description |
Optional |
System.String |
A text description of the managed property explaining what the managed property is used for. |
Input Types
Return Types
Example
---------------EXAMPLE 1-----------------
New-FASTSearchMetadataManagedProperty -name integervalue -type 2 -description "A managed property for integer values"
This example creates a managed property called “integervalue” of type 2 (integer). To further change the settings on the managed property, see Set-FASTSearchMetadataManagedProperty.
---------------EXAMPLE 2-----------------
$managedproperty = New-FASTSearchMetadataManagedProperty -Name webtitle -type 1 -description "Titles from RSS and Sitemap Files"
$rsstitle = Get-FASTSearchMetadataCrawledProperty -Name rss.title
$sitetitle = Get-FASTSearchMetadataCrawledProperty -Name sitemap.title
New-FASTSearchMetadataCrawledPropertyMapping -ManagedProperty $managedproperty -CrawledProperty $rsstitle
New-FASTSearchMetadataCrawledPropertyMapping -ManagedProperty $managedproperty -CrawledProperty $sitetitle
$content_fulltextindex = Get-FASTSearchMetadataFullTextIndex -name content
New-FASTSearchMetadataFullTextIndexMapping -FullTextIndex $content_fulltextindex -ManagedProperty $managedproperty -level 7
This example shows a complete work-flow for making a new managed property and mapping a crawled property to it. It creates a new managed property called “webtitle” to which it maps the crawled properties “rss.title” and “sitemap.title”. The “webtitle” managed property is then mapped into the full text index “content” at importance level 7.
After this, you can feed documents (not shown here) with the crawled properties “rss.title” and “sitemap.title”, and they will appear in the “webtitle” managed property. This managed property is then searchable as part of the full text index named “content”.
To make the managed property searchable on its own, see Set-FASTSearchMetadataManagedProperty-Queryable.
See Also
Reference
Get-FASTSearchMetadataManagedProperty
Set-FASTSearchMetadataManagedProperty
Remove-FASTSearchMetadataManagedProperty