Class Facets
- java.lang.Object
- 
- com.lucidworks.search.dsl.DslBase
- 
- com.lucidworks.search.dsl.request.DslCloneable
- 
- com.lucidworks.search.dsl.request.Facets
 
 
 
- 
 public class Facets extends DslCloneable Facets parameters
- 
- 
Nested Class SummaryNested Classes Modifier and Type Class Description static classFacets.FacetGroupingMethodThis field switches between grouped field facets counted based on header docs after collapse, or based on number of groups which contain at least one document with a given value of a facet field.
 - 
Constructor SummaryConstructors Constructor Description Facets(java.util.List<FacetField> fields, java.util.List<FacetRange> ranges, java.lang.Boolean groupFacets, Facets.FacetGroupingMethod groupingMethod)
 - 
Method SummaryAll Methods Instance Methods Concrete Methods Modifier and Type Method Description voidaddOrReplaceFacetFieldForFieldName(FacetField facetField)voidaddOrReplaceFacetRangeForFieldName(FacetRange facetRange)Facetsclone()java.util.Optional<FacetField>getFacetFieldByFieldName(java.lang.String fieldName)java.util.Optional<FacetRange>getFacetRangeByFieldName(java.lang.String fieldName)java.util.List<FacetField>getFields()booleangetGroupFacets()Facets.FacetGroupingMethodgetGroupingMethod()This field switches between grouped field facets counted based on header docs after collapse, or based on number of groups which contain at least one document with a given value of a facet field.java.util.List<FacetRange>getRanges()voidsetFields(java.util.Collection<? extends FacetField> fields)voidsetRanges(java.util.List<? extends FacetRange> ranges)- 
Methods inherited from class com.lucidworks.search.dsl.request.DslCloneableclone, deepClone
 
- 
 
- 
- 
- 
Constructor Detail- 
Facetspublic Facets(java.util.List<FacetField> fields, java.util.List<FacetRange> ranges, java.lang.Boolean groupFacets, Facets.FacetGroupingMethod groupingMethod) 
 
- 
 - 
Method Detail- 
getFieldspublic java.util.List<FacetField> getFields() - Returns:
- faceting by fields parameters
 
 - 
setFieldspublic void setFields(java.util.Collection<? extends FacetField> fields) 
 - 
getRangespublic java.util.List<FacetRange> getRanges() - Returns:
- faceting by ranges parameters
 
 - 
setRangespublic void setRanges(java.util.List<? extends FacetRange> ranges) 
 - 
getFacetFieldByFieldNamepublic java.util.Optional<FacetField> getFacetFieldByFieldName(java.lang.String fieldName) 
 - 
getFacetRangeByFieldNamepublic java.util.Optional<FacetRange> getFacetRangeByFieldName(java.lang.String fieldName) 
 - 
addOrReplaceFacetFieldForFieldNamepublic void addOrReplaceFacetFieldForFieldName(FacetField facetField) 
 - 
addOrReplaceFacetRangeForFieldNamepublic void addOrReplaceFacetRangeForFieldName(FacetRange facetRange) 
 - 
getGroupFacetspublic boolean getGroupFacets() - Returns:
- group facets flag. If true, facets counts are calculated after grouping, otherwise before.
 Default value is true.
  This flag is only used when Groupwas specified
 
 - 
clonepublic Facets clone() - Specified by:
- clonein class- DslCloneable
 
 - 
getGroupingMethodpublic Facets.FacetGroupingMethod getGroupingMethod() This field switches between grouped field facets counted based on header docs after collapse, or based on number of groups which contain at least one document with a given value of a facet field. For the list of values seeFacets.FacetGroupingMethod.Default value is Facets.FacetGroupingMethod.HEADER_DOC.- Returns:
- facet grouping method
 
 
- 
 
-