ARRAYS AS "AND"

Hi,

In the filters doc is mentionned:
Within each array, its items are applied using an "OR" condition.

How can i do to have the "AND" condition?

For ex if if want all document with Washington AND Idaho?

 "filters": {
   "states": ["Washington", "Idaho"]
 }

Tnx

Hello,

You can break them out into two separate clauses, one for each state, in a list under an all. More info here: https://www.elastic.co/guide/en/app-search/current/filters.html#filters-combining-filters