I just tried to use the context suggester in Elasticsearch 5.x with the option to filter for the contexts. In my Example I have 2 contexts defined and when I query for it, It will retrieve the document even if I just filtered for only a single contexts. So for me it looks like it is a OR Operation.
I can remember using in in Elasticsearch 2.3 and it was definitly a AND Operation. Is there a way to retrieve the document back only if both contexts are found?
I've got the exact same issue. I'm migrating from version 2.3 to 5.3 and have found the 2 contexts are now used in an OR operation rather than an AND operation (as was the case in v2.3). I haven't yet figured out a solution and this will be a show stopper if not sorted out. Anyone know of a workaround or any ideas on what might work? Thanks in advance.
You can track that issue to track progress, and the issue also provides a workaround that may work for you (concatenating contexts into a single value).
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.