Where is boolFilter().cache and hasParentFilter in ES 2.x?


(apanimesh061) #1

Following is a snippet that is compatible with ES 1.x:
BoolFilterBuilder boolFilterBuilder = boolFilter().cache(true);

This is a function present in FilterBuilders.java:
hasParentFilter(String parentType, QueryBuilder query)

How do I change the syntax to make it compatible with ES 2.x?
I could not find any examples?


(Daniel Mitterdorfer) #2

Hi apanimesh061,

the main reason is that queries and filters have been merged in 2.0.

To your specific issues:

Daniel


(system) #3