# Boost on basis of intersection of terms in the two array

**URL:** <https://discuss.elastic.co/t/boost-on-basis-of-intersection-of-terms-in-the-two-array/17722>\
**Category:** Elasticsearch\
**Created:** [May 26, 2014, 8:36am UTC](https://discuss.elastic.co/t/boost-on-basis-of-intersection-of-terms-in-the-two-array/17722 "2014-05-26T08:36:48Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Abhishek\_Gupta1](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/abhishek_gupta1/32/1541_2.png) [@Abhishek\_Gupta1](https://discuss.elastic.co/u/Abhishek_Gupta1)\
**Post date:** [May 26, 2014, 8:36am UTC](https://discuss.elastic.co/t/boost-on-basis-of-intersection-of-terms-in-the-two-array/17722/1 "2014-05-26T08:36:48Z")

</div>

I am working on a simple search where I would prefer if the categories  
belong to a subset. But even if that isn't the case I would still like to  
have the results. I am currently using the following query

"terms" : {  
"tags" : ["sing", "music" ,"relaxing"],  
"minimum\_should\_match" : 0  
}

despite having minimum\_should\_match as 0, the results which doesn't have  
these tags are not being shown. "tags" in this case is an array of  
words/tags for the entity that I am searching for.

Regards  
Abhishek

--  
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/c0586d80-1b14-4eb0-a126-8f7cc2c958d6%40googlegroups.com](https://groups.google.com/d/msgid/elasticsearch/c0586d80-1b14-4eb0-a126-8f7cc2c958d6%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:26am UTC](https://discuss.elastic.co/t/boost-on-basis-of-intersection-of-terms-in-the-two-array/17722/2 "2017-07-06T01:26:59Z")

</div>


