Boosting documents with specific fields while sorting too


I would like to boost some results based on value of specific document property. Idea would be to use function_score with functions/filter, weight and boost_mode "multiply". If I understood correctly that would boost the score of matched documents, but as soon as I use sorting score doesn't matter/exist, no?

So basically, I would be able to use boosting just when there is no sorting, or to find a way to increase value of property by which sorting is requested for documents that should be boosted. However if sorting is requested by other property (i.e. date or rating which changes anytime) my special document will not appear as top results.

Any thoughts on this? Am I approaching it from completely wrong angle?

To understand this better, it would be good to understand how results are sorted when I request query: {"match_all": {}} without any additional criteria? All of the results have score 1.0 but still by default just few (10) of 10_000 possible documents are returned in result. Of course next request would return other 10 but I wonder by which criteria. Thanks a lot

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.