Gravatar for

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

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:

However, if you are using the Coveo Search API endpoint for your queries, it supports modifying the ranking weight per query:$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:

I hope this helps


Ask a question