return Collections.emptyList();
}
}
public Collection<String> getQueryTerms() {
SearchRequestBuilder srb = createSearchBuilder();
FilteredQueryBuilder fb = QueryBuilders.filteredQuery(
QueryBuilders.matchAllQuery(), FilterBuilders.existsFilter(TOKEN));
srb.addFacet(FacetBuilders.termsFacet(QUERY_TERMS).field(QUERY_TERMS).size(1000)).
setQuery(fb);
SearchResponse rsp = srb.execute().actionGet();
// SearchResponse rsp = search(new UserQuery().addFacetField(QUERY_TERMS, 1000));
TermsFacet tf = (TermsFacet) rsp.getFacets().facet(QUERY_TERMS);
if (tf.entries() != null && !tf.entries().isEmpty()) {
Collection<String> res = new ArrayList<String>();
for (TermsFacet.Entry cnt : tf.entries()) {