Class Facets


  • public class Facets
    extends DslCloneable
    Facets parameters
    • Method Detail

      • getFields

        public java.util.List<FacetField> getFields()
        Returns:
        faceting by fields parameters
      • setFields

        public void setFields​(java.util.Collection<? extends FacetField> fields)
      • getRanges

        public java.util.List<FacetRange> getRanges()
        Returns:
        faceting by ranges parameters
      • setRanges

        public void setRanges​(java.util.List<? extends FacetRange> ranges)
      • getFacetFieldByFieldName

        public java.util.Optional<FacetField> getFacetFieldByFieldName​(java.lang.String fieldName)
      • getFacetRangeByFieldName

        public java.util.Optional<FacetRange> getFacetRangeByFieldName​(java.lang.String fieldName)
      • addOrReplaceFacetFieldForFieldName

        public void addOrReplaceFacetFieldForFieldName​(FacetField facetField)
      • addOrReplaceFacetRangeForFieldName

        public void addOrReplaceFacetRangeForFieldName​(FacetRange facetRange)
      • getGroupFacets

        public 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 Group was specified