# Filter on multiple terms with OR

**URL:** <https://discuss.elastic.co/t/filter-on-multiple-terms-with-or/246731>\
**Category:** Elasticsearch\
**Created:** [August 28, 2020, 9:22am UTC](https://discuss.elastic.co/t/filter-on-multiple-terms-with-or/246731 "2020-08-28T09:22:44Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![guruprasadkk](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/guruprasadkk/32/66271_2.png) [@guruprasadkk](https://discuss.elastic.co/u/guruprasadkk)\
**Post date:** [August 28, 2020, 9:22am UTC](https://discuss.elastic.co/t/filter-on-multiple-terms-with-or/246731/1 "2020-08-28T09:22:44Z")

</div>

Is there any way in elastic search to filter on multiple terms. One of the field in our elastic document is language\_code.  
I want to set the filter in boolqueryfilter something like below  
boolQueryBuilder.filter(language\_code == en or language\_code == ar)

Currently I am setting two filters, one with en and another with ar. But it is getting acted as AND.(get me documents where language\_code is en and ar)  
Is there any way to do OR in filter?

---

<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:** [September 25, 2020, 9:22am UTC](https://discuss.elastic.co/t/filter-on-multiple-terms-with-or/246731/2 "2020-09-25T09:22:44Z")

</div>

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.
