Class Configuration

java.lang.Object
com.algolia.model.querysuggestions.Configuration

public class Configuration extends Object
Query Suggestions configuration.
  • Constructor Details

    • Configuration

      public Configuration()
  • Method Details

    • setSourceIndices

      public Configuration setSourceIndices(List<SourceIndex> sourceIndices)
    • addSourceIndices

      public Configuration addSourceIndices(SourceIndex sourceIndicesItem)
    • getSourceIndices

      @Nonnull public List<SourceIndex> getSourceIndices()
      Algolia indices from which to get the popular searches for query suggestions.
    • setLanguages

      public Configuration setLanguages(Languages languages)
    • getLanguages

      @Nullable public Languages getLanguages()
      Get languages
    • setExclude

      public Configuration setExclude(List<String> exclude)
    • addExclude

      public Configuration addExclude(String excludeItem)
    • getExclude

      @Nullable public List<String> getExclude()
      Get exclude
    • setEnablePersonalization

      public Configuration setEnablePersonalization(Boolean enablePersonalization)
    • getEnablePersonalization

      @Nullable public Boolean getEnablePersonalization()
      Whether to turn on personalized query suggestions.
    • setAllowSpecialCharacters

      public Configuration setAllowSpecialCharacters(Boolean allowSpecialCharacters)
    • getAllowSpecialCharacters

      @Nullable public Boolean getAllowSpecialCharacters()
      Whether to include suggestions with special characters.
    • 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