Gravatar for sdimillo@coveo.com

Question by sdimillo, Feb 14, 2017 9:21 PM

Applying multiple ranking models within on-prem

For on-prem customers, can the ranking weights be applied differently to, for example, different sources or different user groups? If so, is there documentation on how to do it or should the customer come to Coveo Support or PS for guidance?

1 Reply
Gravatar for jflheureux@coveo.com

Answer by Jean-François L'Heureux, Feb 15, 2017 9:30 AM

With Coveo Enterprise Search, there is only one global setting for ranking weights that applies to all the queries sent to the index: https://onlinehelp.coveo.com/en/ces/7.0/administrator/customizingsearchresults_ranking.htm

However, if you are using the Coveo Search API endpoint for your queries, it supports modifying the ranking weight per query: https://developers.coveo.com/display/SearchREST/Standard+Query+Extensions#StandardQueryExtensions-$weight

You could add the $weight() query expressions in the advanced query or constant query parts and it will be applied. This is easy if you are using the Coveo JavaScript Search Framework by adding an event handler to the buildingQuery event: https://developers.coveo.com/display/JsSearchV1/Step+4+-+Modifying+the+Query

I hope this helps

Jeff

Ask a question