Hi,
I'm upgrading from 1.X to 5.X (finally ...phew...)
I'm facing an issue with FilterBuilder. At present (1.3.2) my code is
FilterBuilders.notFilter(FilterBuilders.termFilter(key,value);
How do i convert the above code to work in 5.5.1?
Hi,
I'm upgrading from 1.X to 5.X (finally ...phew...)
I'm facing an issue with FilterBuilder. At present (1.3.2) my code is
FilterBuilders.notFilter(FilterBuilders.termFilter(key,value);
How do i convert the above code to work in 5.5.1?
try a bool
query with a must_not
clause in the filter
part of another boolean query (on top of my head, not tested).
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.