# Bool queries not working as expected in v0.17.x

**URL:** <https://discuss.elastic.co/t/bool-queries-not-working-as-expected-in-v0-17-x/4984>\
**Category:** Elasticsearch\
**Created:** [July 28, 2011, 8:21am UTC](https://discuss.elastic.co/t/bool-queries-not-working-as-expected-in-v0-17-x/4984 "2011-07-28T08:21:37Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![sumzitup](https://avatars.discourse-cdn.com/v4/letter/s/91b2a8/32.png) [@sumzitup](https://discuss.elastic.co/u/sumzitup)\
**Post date:** [July 28, 2011, 8:21am UTC](https://discuss.elastic.co/t/bool-queries-not-working-as-expected-in-v0-17-x/4984/1 "2011-07-28T08:21:37Z")

</div>

Hi All,

Since upgrading to v0.17.0 some of my searchers with the bool query  
have not been working correctly. Specifically when using with the  
range query, and the term query that includes searching within a  
multi\_field mapping type.

range example:

"must" : [{"range" : {"updated\_at" : {"from" : 1311163200, "to" :  
1311768000}}}] (inside a query =\> bool objects)

multi\_field type in a term query example:

"must" : [{"term" : {"name.terms" : {"Hello World"}}] (inside a  
query =\> bool objects)

These have been working fine through the 0.15.x and 0.16.x versions of  
elasticsearch.

Iv looked around the release notes/docs/user group to see if this way  
is no longer supported or others with simular experiences, if you guys  
could let me know if im just missing something obvious that would be  
great!!!

Cheers,  
Nick

---

<div class="post-metadata">

**Author:** ![kimchy](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/kimchy/32/44952_2.png) [@kimchy](https://discuss.elastic.co/u/kimchy)\
**Post date:** [July 28, 2011, 8:28am UTC](https://discuss.elastic.co/t/bool-queries-not-working-as-expected-in-v0-17-x/4984/2 "2011-07-28T08:28:59Z")

</div>

Nothing specific changed in these areas, can you post a recreation? (  
[Elasticsearch Platform — Find real-time answers at scale | Elastic](http://www.elasticsearch.org/help)).

On Thu, Jul 28, 2011 at 11:21 AM, Nick Mason [nick@2cu.co.nz](mailto:nick@2cu.co.nz) wrote:

> Hi All,
> 
> Since upgrading to v0.17.0 some of my searchers with the bool query  
> have not been working correctly. Specifically when using with the  
> range query, and the term query that includes searching within a  
> multi\_field mapping type.
> 
> range example:
> 
> "must" : [{"range" : {"updated\_at" : {"from" : 1311163200, "to" :  
> 1311768000}}}] (inside a query =\> bool objects)
> 
> multi\_field type in a term query example:
> 
> "must" : [{"term" : {"name.terms" : {"Hello World"}}] (inside a  
> query =\> bool objects)
> 
> These have been working fine through the 0.15.x and 0.16.x versions of  
> elasticsearch.
> 
> Iv looked around the release notes/docs/user group to see if this way  
> is no longer supported or others with simular experiences, if you guys  
> could let me know if im just missing something obvious that would be  
> great!!!
> 
> Cheers,  
> Nick

---

<div class="post-metadata">

**Author:** ![sumzitup](https://avatars.discourse-cdn.com/v4/letter/s/91b2a8/32.png) [@sumzitup](https://discuss.elastic.co/u/sumzitup)\
**Post date:** [July 28, 2011, 10:52am UTC](https://discuss.elastic.co/t/bool-queries-not-working-as-expected-in-v0-17-x/4984/3 "2011-07-28T10:52:20Z")

</div>

Shortly after posting i realized that you had release 0.17.2, after  
upgrading my queries have started to work again.

Thanks Shay for your fast response,

---

<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, 3:58am UTC](https://discuss.elastic.co/t/bool-queries-not-working-as-expected-in-v0-17-x/4984/4 "2017-07-06T03:58:58Z")

</div>

Closed on July 6, 2017, 3:58am UTC


