QueryBuilders.hasParentQuery() deprecated in Es v5.6.2

I am upgrading the es to v5.6.2 from v.2.3.3, and I am facing the error cannot find symbol: method QueryBuilders.hasParentQuery() as it has been deprecated in v5.6.2
Below is the line of code where error occurs-
QueryBuilder queryBuilder = QueryBuilders.hasParentQuery(parentDao.getDocumentType(), nestedQueryBuilder);

Please help :slight_smile:

You can use this I think:

new HasParentQueryBuilder(...)
1 Like

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.