return __counter.getAndIncrement();
}
private SearchResponse getTermList(final String valueField, final int maxPerShard, final float sample, final String mode) {
final FacetBuilder facet =
new TermListFacetBuilder(__facetName)
.keyField(valueField)
.maxPerShard(maxPerShard)
.sample(sample).mode(FacetBuilder.Mode.valueOf(mode.toUpperCase()));