Manage full-text indexes by using Windows PowerShell (FAST Search Server 2010 for SharePoint)
Published: May 12, 2010
A full-text index is used to index groups of managed properties, which allows a search query to be run across multiple properties at the same time. You must use a full-text index to achieve ranked results for queries.
In this article:
-
Define a full-text index with a corresponding rank profile by using Windows PowerShell
-
Modify the list of full-text index rank components for a rank profile by using Windows PowerShell
Define a full-text index with a corresponding rank profile by using Windows PowerShell
The following procedure creates a new full-text index, creates a new rank profile, and associates the full-text index to the rank profile by using the FullTextIndexRankCollection interface.
-
Verify that you meet the following minimum requirements: You are a member of the FASTSearchAdministrators local group on the computer where FAST Search Server 2010 for SharePoint is installed.
-
On the Start menu, click All Programs.
-
Click Microsoft FAST Search Server 2010 for SharePoint.
-
Click Microsoft FAST Search Server 2010 for SharePoint shell.
-
At the Windows PowerShell command prompt, type the following commands:
$NewFTI = New-FASTSearchMetadataFullTextIndex -Name "<NewFullTextIndexName>" -Description "<NewFullTextIndexDescription>" $NewRP = New-FASTSearchMetadataRankProfile -Name "<NewRankProfileName>" $RCList = $NewRP.GetFullTextIndexRanks() $RCList.Create($NewFTI)
Where:
-
$NewFTI is the full-text index object of the new full-text index.
-
<NewFullTextIndexName> is the name of the new full-text index.
-
<NewFullTextIndexDescription> is a textual description of the new full-text index.
-
$NewRP is the rank profile object of the new rank profile.
-
<NewRankProfileName> is the name of the new rank profile.
-
$RCList is the list of existing full-text index rank components for the new rank component.
-
Note:
|
|---|
|
When you create a new full-text index, it will be created with the default values for its properties. If you want to set properties to non-default values, you will have to do that after you have created the full-text index. |
Note:
|
|---|
|
When you create a new rank profile, it will be created with the default values for its properties. If you want to set properties to non-default values, you will have to do that after you have created the rank profile. When you create a new rank profile, you can also provide an existing rank profile as a template specifying the "-Template" parameter when you use the New-FASTSearchMetadataRankProfile Windows PowerShell cmdlet. |
Note:
|
|---|
|
When you create a new rank profile, it has the default full-text index as its full-text index rank component. If you want to associate your rank profile with another full-text index, you must create a new full-text index rank component in your rank profile. It will be added as a second full-text index rank component to the rank profile. Then you delete the default full-text index rank component after you have created the new one. |
See also
Modify the list of full-text index rank components for a rank profile by using Windows PowerShell
If you want to modify the list of full-text index rank components for a rank profile, you must traverse the list of full-text index rank components and modify the individual full-text index rank component.
The following procedure shows how you can delete the full-text index rank component that is associated with the default full-text index.
-
Verify that you meet the following minimum requirements: You are a member of the FASTSearchAdministrators local group on the computer where FAST Search Server 2010 for SharePoint is installed.
-
On the Start menu, click All Programs.
-
Click Microsoft FAST Search Server 2010 for SharePoint.
-
Click Microsoft FAST Search Server 2010 for SharePoint shell.
-
At the Windows PowerShell command prompt, type the following commands:
$NewRP = Get-FASTSearchMetadataRankProfile -Name "<NewRankProfileName>" $RCList = $NewRP.GetFullTextIndexRanks() foreach ($FTIRankComponent in $RCList) { if($FTIRankComponent.FullTextIndexReference.Name.Equals("<DefaultFTIName>")) { $FTIRankComponent.Delete() } }Where:
-
<NewRankProfileName> is the name of the new rank profile.
-
$NewRP is the rank profile object of the new rank profile.
-
$RCList is the list of existing full-text index rank components for the rank profile.
-
<DefaultFTIName> is the name of the default full-text index (in a default configuration this is named "content").
-

Note: