# Problem with Boosting on Matched Nested Values

**URL:** <https://discuss.elastic.co/t/problem-with-boosting-on-matched-nested-values/17575>\
**Category:** Elasticsearch\
**Created:** [May 18, 2014, 2:10am UTC](https://discuss.elastic.co/t/problem-with-boosting-on-matched-nested-values/17575 "2014-05-18T02:10:38Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Ben\_Hirsch](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/ben_hirsch/32/1558_2.png) [@Ben\_Hirsch](https://discuss.elastic.co/u/Ben_Hirsch)\
**Post date:** [May 18, 2014, 2:10am UTC](https://discuss.elastic.co/t/problem-with-boosting-on-matched-nested-values/17575/1 "2014-05-18T02:10:38Z")

</div>

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](https://gist.github.com/phirschybar/058d4fac11325887a451)

I have the following  
query: [https://gist.github.com/phirschybar/d3a2876ad367138e0b2d](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](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](mailto: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](https://groups.google.com/d/msgid/elasticsearch/be5ca9d2-2fbb-4839-95ef-6c3e74ea47bf%40googlegroups.com).  
For more options, visit [https://groups.google.com/d/optout](https://groups.google.com/d/optout).

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/elastic/original/3X/1/a/1ac57faf039f6b580b3f104ef42a2a89e41014de.png) [@system](https://discuss.elastic.co/u/system)\
**Post date:** [July 6, 2017, 1:28am UTC](https://discuss.elastic.co/t/problem-with-boosting-on-matched-nested-values/17575/2 "2017-07-06T01:28:39Z")

</div>

Closed on July 6, 2017, 1:28am UTC


