Create and manage rank profiles by using Windows PowerShell (FAST Search Server 2010 for SharePoint)

 

Applies to: FAST Search Server 2010

In this article the following procedures are described:

  • Create a new rank profile by using Windows PowerShell

  • Create a new rank profile by using the default rank profile as a template by using Windows PowerShell

  • Change the default rank profile by using the graphical interface

Create a new rank profile by using Windows PowerShell

  1. 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.

  2. On the Start menu, click All Programs.

  3. Click Microsoft FAST Search Server 2010 for SharePoint.

  4. Click Microsoft FAST Search Server 2010 for SharePoint shell.

  5. At the Windows PowerShell command prompt, type the following command(s):

    New-FASTSearchMetadataRankProfile -name <NewRankProfile>
    
    >> Name                                 :  NewRankProfile
    >> isDefault                            :  False
    >> RankModelName                        :  default
    >> StopWordThreshold                    :  2000000
    >> PositionStopWordThreshold            :  20000000
    >> QualityWeight                        :  50
    >> AuthorityWeight                      :  50
    >> QueryAuthorityWeight                 :  100
    >> FreshnessWeight                      :  1000
    >> FreshnessResolution                  :  Second
    >> FreshnessManagedPropertyReference    :  Write
    

    Where:

    • <NewRankProfile> is the name of the new rank profile that you want to create, for example NewRankProfile.

See also

RankProfileCollection.Create Method (String)

Get-FASTSearchMetadataRankProfile

Create a new rank profile by using the default rank profile as a template by using Windows PowerShell

  1. 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.

  2. On the Start menu, click All Programs.

  3. Click Microsoft FAST Search Server 2010 for SharePoint.

  4. Click Microsoft FAST Search Server 2010 for SharePoint shell.

  5. At the Windows PowerShell command prompt, type the following command(s):

    $rp = Get-FASTSearchMetadataRankProfile -name <TemplateRankProfile>
    $np = New-FASTSearchMetadataRankProfile -name <NewRankProfile> -template $rp
    

    Where:

    • <TemplateRankProfile> is the name of the rank profile that you want to use as template, for example default.

    • <NewRankProfile> is the name of the new rank profile that you want to create, for example NewRankProfile.

  6. View the newly created rank profile:

    $np
    
    >> Name                                 :  NewRankProfile
    >> isDefault                            :  False
    >> RankModelName                        :  default
    >> StopWordThreshold                    :  2000000
    >> PositionStopWordThreshold            :  20000000
    >> QualityWeight                        :  50
    >> AuthorityWeight                      :  50
    >> QueryAuthorityWeight                 :  100
    >> FreshnessWeight                      :  1000
    >> FreshnessResolution                  :  Second
    >> FreshnessManagedPropertyReference    :  Write
    

See also

RankProfileCollection.Create Method (String, RankProfile)

Get-FASTSearchMetadataRankProfile

Change the default rank profile by using the graphical interface

When a user types one or more search words into the Search Box Web Part on the search page (default.aspx) in the Search Center site, the search service returns the results displayed in various Web Parts on the search results page (results.aspx). If the search words did not contain any keywords or associated synonyms, the order of the search results are based on the rank score calculated by the default rank profile. The label of the default rank profile is displayed in the Sort by pull down menu. The default search results page uses the default rank profile, which is labeled Relevance in the Sort by pull down menu. Use the following procedure to change the default rank profile via the graphical interface:

  1. On the Search Center site, enter a search word and then click the Search icon.

  2. On the Search results page, click the Site Actions menu, and then click Edit Page.

  3. From the Search Action Links Web Part Menu select Edit Web Part.

  4. In the web part tool pane, expand Display Properties to display all existing rank profiles.

  5. Select the rank profile that you want to set as default by clicking the Default radio button and checking the Enabled check box next to it.

  6. Click OK.

  7. Click Save & Close.

The new default rank profile will now appear in the Sort by pull down menu.

Note

The name that you gave the rank profile when you created it, is displayed in the ID column under Display Properties in the Search Action Link Web Part tool pane. You can change the name of the rank profile as displayed in the Sort by pull down menu on the Search results page by editing the name in the Label column.