I want to define a query rule (?) to boost people results that contain the last name in the query (using SharePoint 2013), basically I want to rank the results where the query is contained in the lastname/firstname field higher than where the query is only contained in another field (e.g. "Ask me about").

This of course should be done in the ranking model, but somehow this doesn't always work. I would like to create a simple rule that basically says "if {query} is contained in [LastName] or [FirstName], then boost result entry to the top".

Possible with query rules? Possible with something else? XRANK?

  • 2010 or 2013 (since search terminology is quite different between them)? – Robert Lindgren Jul 16 '15 at 10:58
  • Perfectly good question. 2013 – Dennis G Jul 17 '15 at 9:54

If you're using SharePoint 2013 it should be something like:

({SearchBoxQuery} XRANK(cb=2000) Lastname:{SearchBoxQuery}) XRANK(cb=1000)  Firstname:{SearchBoxQuery}

Boosting match on last name by 2000, on first name by 1000 and on both by 3000

  • Ah so not really a query rule? I could just add this to the search result WebPart. (2013 is correct) – Dennis G Jul 17 '15 at 10:09

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.