How to specify the order in which the search results will be displayed
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.
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.
More information is available here: https://developers.coveo.com/display/SC201504/Inserting+and+Customizing+a+Search+Interface+Component
I hope this helps