# Elastic search should

**URL:** <https://discuss.elastic.co/t/elastic-search-should/10615>\
**Category:** Elasticsearch\
**Created:** [February 4, 2013, 11:13am UTC](https://discuss.elastic.co/t/elastic-search-should/10615 "2013-02-04T11:13:28Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Jayshree\_Bhongle](https://avatars.discourse-cdn.com/v4/letter/j/9fc348/32.png) [@Jayshree\_Bhongle](https://discuss.elastic.co/u/Jayshree_Bhongle)\
**Post date:** [February 4, 2013, 11:13am UTC](https://discuss.elastic.co/t/elastic-search-should/10615/1 "2013-02-04T11:13:28Z")

</div>

the should filter is working for some word and not working for others..  
\_search{"from":"0","size":"10","query":{"bool":{"should":[{"term":{"name":"soliloquy"}},{"term":{"location":"soliloquy"}}]}}}

this query should be doing or but I am not getting exactly how this query  
goes

--  
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).  
For more options, visit [https://groups.google.com/groups/opt\_out](https://groups.google.com/groups/opt_out).

---

<div class="post-metadata">

**Author:** ![radu\_gheorghe](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/radu_gheorghe/32/556_2.png) [@radu\_gheorghe](https://discuss.elastic.co/u/radu_gheorghe)\
**Post date:** [February 4, 2013, 11:51am UTC](https://discuss.elastic.co/t/elastic-search-should/10615/2 "2013-02-04T11:51:17Z")

</div>

On Mon, Feb 4, 2013 at 1:13 PM, Jayshree Bhongle [jayshreeb@fermion.in](mailto:jayshreeb@fermion.in)wrote:

> the should filter is working for some word and not working for others..
> 
> \_search{"from":"0","size":"10","query":{"bool":{"should":[{"term":{"name":"soliloquy"}},{"term":{"location":"soliloquy"}}]}}}
> 
> this query should be doing or but I am not getting exactly how this query  
> goes

Right, it should do a sort of "or". Because you have no "must", one or more  
"should" clauses need to match. And you can change that with  
minimum\_number\_should\_match.

If things still don't work as they should, could you provide a curl  
recreation of your problem?

## Best regards, Radu

[http://sematext.com/](http://sematext.com/) -- Elasticsearch -- Solr -- Lucene

--  
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).  
For more options, visit [https://groups.google.com/groups/opt\_out](https://groups.google.com/groups/opt_out).

---

<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, 2:53am UTC](https://discuss.elastic.co/t/elastic-search-should/10615/3 "2017-07-06T02:53:07Z")

</div>


