my requirement is to elevate a limited number of (e.g. five) documents for a user request.
What I've got is a single document field which stores a numerical value similar to a boosting value which represents an elevator ranking value.
So a user query would return 5 documents with the highest elevator ranking value and the remaining documents to fill a page in regular order.
How to do that?
The QueryElevationComponent
does only allow static query definitions. Boosting does not allow to boost a limited number of documents for the special elevator ranking field.
Do I have to write a modified QueryElevationComponent? If yes, are there good examples how to do that?
Or does another approach exists, I didnt catched up?
Thank you for any hints or ideas!