Upgrading from 1.X to 5.X : FilterBuilders.notFilter

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.