public class FacetField extends FacetBase
Modifier and Type | Class and Description |
---|---|
static class |
FacetField.Sort |
Constructor and Description |
---|
FacetField(String field,
String prefix,
FacetField.Sort sort,
Integer limit,
Integer offset,
Integer minCount,
Boolean missing,
List<String> ensuredValues,
FacetDomain domain) |
Modifier and Type | Method and Description |
---|---|
FacetField |
clone() |
List<String> |
getEnsuredValues() |
Integer |
getLimit() |
Integer |
getMinCount() |
Boolean |
getMissing() |
Integer |
getOffset() |
String |
getPrefix() |
FacetField.Sort |
getSort() |
clone, deepClone
public FacetField(String field, String prefix, FacetField.Sort sort, Integer limit, Integer offset, Integer minCount, Boolean missing, List<String> ensuredValues, FacetDomain domain)
public String getPrefix()
public FacetField.Sort getSort()
public Integer getLimit()
Default is 100
public Integer getOffset()
public Integer getMinCount()
public Boolean getMissing()
public List<String> getEnsuredValues()
Field facets only return getLimit()
distinct values for the field in question. Other values are
unrepresented in the field facet. Users who want to ensure that specific values are included can specify those
values here. This guarantees that they appear as a value in the field facet, even if they have a low or zero count.
public FacetField clone()
clone
in class DslCloneable