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?