This is a great plugin but I've found on searching for something like "support", a CMS page called support.htm appears below an old blog article from years ago.
Is there a way of setting a priority - and/or setting keywords - so some pages will appear above others?
I've looked through the Docs and can't find any mention of this but apologies if I've missed something obvious.
Thank you!
The relevance
parameter defines where a result is displayed (the higher the relevance the higher it appears in the results): https://github.com/OFFLINE-GmbH/oc-site-search-plugin/blob/4ef09b330a793ea4f3e25d19fafb3477c6753f21/classes/providers/CmsPagesResultsProvider.php#L45C14-L45C23
You can copy/extend the default provider classes and register them as your own to modify this value.
Another option is to use the offline.sitesearch.results
Event. There you can modify the results collection, after the search was run, as you like.
1-2 of 2