Skip to content

Instantly share code, notes, and snippets.

Last active Aug 29, 2015
What would you like to do?
BoolFilterBuilder filter = FilterBuilders.boolFilter()
.must(termFilter("campaign_id", 830))
.mustNot(idsFilter("247", "1401", "611", "2884", "1901"));
QueryBuilder qb = QueryBuilders
.likeText("247 1401 611 2884 1901")
SearchResponse response = client.prepareSearch("rec_dest")
return response.getHits().getTotalHits();
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment