Class AutomaticFacetFilter

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

public class AutomaticFacetFilter extends Object
Filter or optional filter to be applied to the search.
  • Constructor Details

    • AutomaticFacetFilter

      public AutomaticFacetFilter()
  • Method Details

    • setFacet

      public AutomaticFacetFilter setFacet(String facet)
    • getFacet

      @Nonnull public String getFacet()
      Facet name to be applied as filter. The name must match placeholders in the `pattern` parameter. For example, with `pattern: {facet:genre}`, `automaticFacetFilters` must be `genre`.
    • setScore

      public AutomaticFacetFilter setScore(Integer score)
    • getScore

      @Nullable public Integer getScore()
      Filter scores to give different weights to individual filters.
    • setDisjunctive

      public AutomaticFacetFilter setDisjunctive(Boolean disjunctive)
    • getDisjunctive

      @Nullable public Boolean getDisjunctive()
      Whether the filter is disjunctive or conjunctive. If true the filter has multiple matches, multiple occurences are combined with the logical `OR` operation. If false, multiple occurences are combined with the logical `AND` operation.
    • 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