DeleteByQuery with searchTemplate filter


I am using es 5.2 and trying to use Java API for delete_by_query. I am using search template to build get queries which I would like to pass in

BulkIndexByScrollResponse response =
        .filter(QueryBuilders.matchQuery("gender", "male")) 

I have seen several examples of matchQuery, boolQuery, matchAllQuery but I can't find anything on searchTemplateQueryBuilder.

Please let me know if I can actually use searchTemplate to build the query and pass it as filter for deletebyquery.

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