_boost not applied to match_all


(Kellan) #1

The _boost value for a document does not get applied if the query is a
"match_all". Is there a way to apply filters (because they don't
change the boost), and then _score the results solely based on the
documents' boost values? When I do a match_all query with filters, all
of the documents have a _score of 1.


(Shay Banon) #2

You can specify in the match_all query a norms_field (you can point it to
_all) which will cause it to take that field boosting into account (but
slower executing).

On Wed, Dec 21, 2011 at 12:03 AM, Kellan wampleek@gmail.com wrote:

The _boost value for a document does not get applied if the query is a
"match_all". Is there a way to apply filters (because they don't
change the boost), and then _score the results solely based on the
documents' boost values? When I do a match_all query with filters, all
of the documents have a _score of 1.


(system) #3