Filter on multiple terms with OR

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?

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