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
'product': https://gist.github.com/phirschybar/058d4fac11325887a451

I have the following
query: https://gist.github.com/phirschybar/d3a2876ad367138e0b2d

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

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: https://gist.github.com/phirschybar/a469198361fb23d0dbc0 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 elasticsearch+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/elasticsearch/be5ca9d2-2fbb-4839-95ef-6c3e74ea47bf%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


(system) #2