Change the proximity weight by using Windows PowerShell (FAST Search Server 2010 for SharePoint)

 

Applies to: FAST Search Server 2010

Note

When tuning dynamic rank, we recommend that you create a new rank profile, on which you can test the new component settings. For more on how to create new rank profiles, see Create and manage rank profiles by using Windows PowerShell (FAST Search Server 2010 for SharePoint).

  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):

    $RankProfile = Get-FASTSearchMetadataRankProfile -Name <RankProfile>
    

    Where:

    • <RankProfile> is the name of the rank profile that you want to change the proximity weight of. The default rank profile is named default.
  6. Get the full text index:

    $content = $RankProfile.GetFullTextIndexRanks()|where-Object -filterscript {$_.FullTextIndexReference.Name -eq "content"}
    
  7. Look at the current value:

    $content
    
    >> FullTextIndexReference : content
    >> ProximityWeight: 50
    >> ContextWeight: 50
    
  8. Change the proximity weight:

    $content.ProximityWeight = <ProximityWeight>
    

    Where:

    • <ProximityWeight> is the weight you want to give the proximity component, for example 200.
  9. Update the full text index with the new value:

    $content.Update()
    
  10. Look at the full text index to confirm that the new value is being used:

    $content
    
    >> FullTextIndexReference : content
    >> ProximityWeight: 200
    >> ContextWeight: 50
    

See also

FullTextIndexRankComponent.ProximityWeight Property

Get-FASTSearchMetadataRankProfile

Get-FASTSearchMetadataFullTextIndex