Class FacetHits

java.lang.Object
com.algolia.model.search.FacetHits

public class FacetHits extends Object
FacetHits
  • Constructor Details

    • FacetHits

      public FacetHits()
  • Method Details

    • setValue

      public FacetHits setValue(String value)
    • getValue

      @Nonnull public String getValue()
      Facet value.
      Returns:
      value
    • setHighlighted

      public FacetHits setHighlighted(String highlighted)
    • getHighlighted

      @Nonnull public String getHighlighted()
      Markup text with `facetQuery` matches highlighted.
      Returns:
      highlighted
    • setCount

      public FacetHits setCount(Integer count)
    • getCount

      @Nonnull public Integer getCount()
      Number of records containing this facet value. This takes into account the extra search parameters specified in the query. Like for a regular search query, the [counts may not be exhaustive](https://support.algolia.com/hc/en-us/articles/4406975248145-Why-are-my-facet-and-hit-counts-not-accurate-).
      Returns:
      count
    • equals

      public boolean equals(Object o)
      Overrides:
      equals in class Object
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • toString

      public String toString()
      Overrides:
      toString in class Object