void setIncludeZeroCount(boolean includeZeroCount) {
this.includeZeroCount = includeZeroCount;
}
FacetRequest getFacetRequest() {
FacetRequest request = null;
if ( isRangeQuery ) {
// request = ...
}
else {
request = new DiscreteFacetRequest( name, fieldName );
}
request.setSort( sort );
request.setIncludeZeroCounts( includeZeroCount );
return request;
}