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
all
This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.
© 2020. All Rights Reserved - Elasticsearch
Apache, Apache Lucene, Apache Hadoop, Hadoop, HDFS and the yellow elephant logo are trademarks of the Apache Software Foundation in the United States and/or other countries.