Class AutoFacetFilter

java.lang.Object
com.algolia.model.recommend.AutoFacetFilter

public class AutoFacetFilter extends Object
Facet attribute. Only recommendations with the same value (or only recommendations with a different value) as the original viewed item are included.
  • Constructor Details

    • AutoFacetFilter

      public AutoFacetFilter()
  • Method Details

    • setFacet

      public AutoFacetFilter setFacet(String facet)
    • getFacet

      @Nullable public String getFacet()
      Facet attribute.
    • setNegative

      public AutoFacetFilter setNegative(Boolean negative)
    • getNegative

      @Nullable public Boolean getNegative()
      Whether the filter is negative. If true, recommendations must not have the same value for the `facet` attribute. If false, recommendations must have the same value for the `facet` attribute.
    • 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