Impact Ranking Using Search Scopes and XRANK

Impact Ranking Using Search Scopes and XRANK

FAST Search for SharePoint uses search scopes in a somewhat different way than SharePoint Server search. The FAST scopes are query-time only, and you can also specify rather complex search scopes using the FAST Query Language (FQL).

You can use search scopes to impact ranking in queries. Let's say you want to boost certain items based on their metadata, and you only want to do that for certain queries. It is possible to create a search scope for this purpose.

In the following example you will create a search scope that gives a boost of 5000 rank points for items that contains 'technology' in a managed propety 'articlegroups'.

The FQL expression you use in the scope definition is:

    xrank(meta.collection:sp, articlegroups:technology, boost=5000, boostall=yes)
The aim of the first argument, "meta.collection:sp", is just to have a property expression that is always true. In this case, it will match all items that resides in the content collection named "sp", which happens to be the default content collection in the system and in most cases the only content collection). The XRANK operator requires a first argument that must match in order for the XRANK to be evaluated. For details, see XRANK syntax.

When you use this search scope in a query, the resulting query will be something like this:

    AND(string("<user query>", Mode="AND"), xrank(meta.collection:sp, articlegroups:technology , boost=5000, boostall=yes))

You can add the search scope using PowerShell:

    New-SPEnterpriseSearchQueryScope -SearchApplication "FASTQuery" -Name "IT" -Description "A scope to boost docs associated with Information Technology" -DisplayInAdminUI 1 -ExtendedSearchFilter "xrank(meta.collection:sp, articlegroups:technology, boost=5000, boostall=yes)"

More on using search scopes:

 

Leave a Comment
  • Please add 1 and 7 and type the answer here:
  • Post
Wiki - Revision Comment List(Revision Comment)
Sort by: Published Date | Most Recent | Most Useful
Comments
  • Richard Mueller edited Revision 2. Comment: Removed (en-US) from title

  • Craig Lussier edited Revision 1. Comment: added en-US to tags and title

Page 1 of 1 (2 items)
Wikis - Comment List
Sort by: Published Date | Most Recent | Most Useful
Posting comments is temporarily disabled until 10:00am PST on Saturday, December 14th. Thank you for your patience.
Comments
  • Craig Lussier edited Revision 1. Comment: added en-US to tags and title

  • Richard Mueller edited Revision 2. Comment: Removed (en-US) from title

Page 1 of 1 (2 items)