Class FacetField
- java.lang.Object
- 
- com.lucidworks.search.dsl.DslBase
- 
- com.lucidworks.search.dsl.request.DslCloneable
- 
- com.lucidworks.search.dsl.request.FacetBase
- 
- com.lucidworks.search.dsl.request.FacetField
 
 
 
 
- 
 public class FacetField extends FacetBase Field facet parameters
- 
- 
Nested Class SummaryNested Classes Modifier and Type Class Description static classFacetField.Sort
 - 
Constructor SummaryConstructors Constructor Description FacetField(java.lang.String field, java.lang.String prefix, FacetField.Sort sort, java.lang.Integer limit, java.lang.Integer offset, java.lang.Integer minCount, java.lang.Boolean missing, java.util.List<java.lang.String> ensuredValues, FacetDomain domain)
 - 
Method SummaryAll Methods Instance Methods Concrete Methods Modifier and Type Method Description FacetFieldclone()java.util.List<java.lang.String>getEnsuredValues()java.lang.IntegergetLimit()java.lang.IntegergetMinCount()java.lang.BooleangetMissing()java.lang.IntegergetOffset()java.lang.StringgetPrefix()FacetField.SortgetSort()- 
Methods inherited from class com.lucidworks.search.dsl.request.DslCloneableclone, deepClone
 
- 
 
- 
- 
- 
Constructor Detail- 
FacetFieldpublic FacetField(java.lang.String field, java.lang.String prefix, FacetField.Sort sort, java.lang.Integer limit, java.lang.Integer offset, java.lang.Integer minCount, java.lang.Boolean missing, java.util.List<java.lang.String> ensuredValues, FacetDomain domain)
 
- 
 - 
Method Detail- 
getPrefixpublic java.lang.String getPrefix() - Returns:
- prefix. Limits the terms used for faceting to those that begin with the specified prefix
 
 - 
getSortpublic FacetField.Sort getSort() - Returns:
- sort type. Controls how faceted results are sorted
 
 - 
getLimitpublic java.lang.Integer getLimit() - Returns:
- limit. Controls how many constraints should be returned for each facet.
 Default is 100 
 
 - 
getOffsetpublic java.lang.Integer getOffset() - Returns:
- offset. Specifies an offset into the facet results at which to begin displaying facets.
 
 - 
getMinCountpublic java.lang.Integer getMinCount() - Returns:
- minimum count. Specifies the minimum counts required for a facet field to be included in the response. Default value is 1.
 
 - 
getMissingpublic java.lang.Boolean getMissing() - Returns:
- include missing flag. Controls whether to include a count of all matching results which have no value for the field, in addition to the term-based constraints of a facet field.
 
 - 
getEnsuredValuespublic java.util.List<java.lang.String> getEnsuredValues() - Returns:
- ensured values.
 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.
 
 - 
clonepublic FacetField clone() - Specified by:
- clonein class- DslCloneable
 
 
- 
 
-