Class SearchFacet

java.lang.Object
org.craftercms.studio.model.search.SearchFacet

public class SearchFacet extends Object
Holds the data for a single facet
Author:
joseross
  • Field Details

    • name

      protected String name
      The label of the facet
    • range

      protected boolean range
      Indicates if the facet values are ranges
    • date

      protected boolean date
      Indicates if the facet values are dates
    • multiple

      protected boolean multiple
      Indicates if the facet supports multiple values
    • values

      protected Map<Object,Object> values
      The values and counts of the facet
  • Constructor Details

    • SearchFacet

      public SearchFacet()
  • Method Details

    • getName

      public String getName()
    • setName

      public void setName(String name)
    • isRange

      public boolean isRange()
    • setRange

      public void setRange(boolean range)
    • isMultiple

      public boolean isMultiple()
    • setMultiple

      public void setMultiple(boolean multiple)
    • isDate

      public boolean isDate()
    • setDate

      public void setDate(boolean date)
    • getValues

      public Map<Object,Object> getValues()
    • setValues

      public void setValues(Map<Object,Object> values)