How do I set a specific order for search results with Coveo for Sitecore? For example, let's say I have pages that represent classes and I would like my content manager to define in which order these classes would be displayed after a search for a specific query.
Can I do this using boosting? How do I create a boosting value that's based on a field value? Is that via a pipeline to set the the query ranking values in the index? I thought I saw something like that in training.
Suppose you have only classes in a search page and you want the content manager to choose the display order.
Add an "search order" numeric field to your classes template.
Configure this field to be a sort field in the Coveo.SearchProvider.config file "fieldMap" section with the isSortable="true" attribute.
Let the content manager fill the field on the classes items with desired numbers.
It is possible to do what you want with boosting rules (aka. Query Ranking Expressions). You will need to configure one rule per item you want to "place" in the result list, then assign different weight to each rule. The highest the weight, the higher the result will appear.
Thank you. That's a good option.