- Issue created by @daniel_j
- 🇺🇸United States daniel_j
This appears to be a shortcoming of OpenSearch itself, not the Drupal module. Perhaps in the short term it would be advisable to hide type-specific boosting when OpenSearch is the SearchAPI backend.
It may be possible to code a workaround for OpenSearch 2.9 or higher, using script score queries. This would involve adding a numeric field to the index, and then using its value as a multiplier.
- Status changed to Closed: won't fix
7 months ago 1:22am 23 April 2024 - 🇦🇺Australia kim.pepper 🏄♂️🇦🇺Sydney, Australia
Closing as won't fix. Please feel to re-open if you think there is a way to achieve this.
- achap 🇦🇺
This is possible using rank_feature queries in opensearch and it is implemented in search_api_opensearch. See https://git.drupalcode.org/project/search_api_opensearch/-/commit/fa23b3e5f6d24d39d126ab0ad40b974997e16ae4
The search_api_boost value is created for each document and you can use a rank_feature query on that field to boost results.