Export (0) Print
Expand All

Change the managed property field boost weight by using Windows PowerShell (FAST Search Server 2010 for SharePoint)

FAST Search Server 2010
 

Applies to: FAST Search Server 2010

Topic Last Modified: 2012-01-19


To be able to give rank points to items that have a particular value within a managed property, for example add rank points when the value of the managed property language is English or the value of the managed property fileextension is .docx, you first have to create a Managed Property Boost Component. The weight for the managed property field boost is then set on this component.

noteNote
When you tune dynamic rank, we recommend that you create a new rank profile, on which you can test the new component settings. For more information about 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:

    $RankProfile = Get-FASTSearchMetadataRankProfile -Name <RankProfile>
    
    

    Where:

    • <RankProfile> is the name of the rank profile that you want to change the managed property field boost of. The default rank profile is named default.

  6. Get the managed property that you want change the field boost of:

    $Property = Get-FASTSearchMetadataManagedProperty -Name <ManagedProperty>
    
    

    Where:

    • <ManagedProperty> is the managed property that you want change the field boost of, for example fileextension.

  7. Create the Managed Property Boost Component and set the weight:

    $RankProfile.CreateManagedPropertyBoostComponent($Property, "<ManagedPropertyValue>,<ManagedPropertyBoostWeight>")
    
    

    Where:

    • <ManagedPropertyValue> is the value of the managed property that you want to add rank points to, for example docx.

    • <ManagedPropertyBoostWeight> is the weight you want to add to the Managed Property Boost Component, for example 1000.

  8. Update the rank profile with the new values:

    $RankProfile.Update() 
    
  9. Look at the managed property to confirm that the new value is being used:

    $RankProfile.GetManagedPropertyBoosts()|where-object { $_.ManagedPropertyReference.Name -eq "<ManagedProperty>"}
    
    >> ManagedPropertyReference : fileextension
    >> BoostValue               : csv,-4000,txt,-4000,msg,-4000,oft,-4000,zip,-4000,vsd,-4000,rtf,-4000
    
    >> ManagedPropertyReference : fileextension
    >> BoostValue               : docx,1000
    

    Where:

    • <ManagedProperty> is the managed property changed the field boost of, for example fileextension.

Was this page helpful?
(1500 characters remaining)
Thank you for your feedback
Show:
© 2014 Microsoft