Problem with Boosting on Matched Nested Values

(Ben Hirsch) #1

I have tried so many things I am starting to lose my mind.

I have the following mapping for type

I have the following

I am trying to return ALL products but boost the score of the products
which contain the nested

This seems to work, however, it ONLY returns the products that have the
relevant nested stores, not ALL of the products with matching stores having
a higher score.

I have included 'match_all' to try to capture all of the products which did
not receive the other boost. But this does not have an affect. I have also
tried using 'minimum_should_match' = 0 with the hopes that my results would
pick up all of the products.

I should also note that when I run the following
query: I do
receive all products as expected.

You received this message because you are subscribed to the Google Groups "elasticsearch" group.
To unsubscribe from this group and stop receiving emails from it, send an email to
To view this discussion on the web visit
For more options, visit

(system) #2