Class Suggester

  • All Implemented Interfaces:
    Serializable, Cloneable

    public class Suggester
    extends Object
    implements Serializable, Cloneable

    Configuration information for a search suggester. Each suggester has a unique name and specifies the text field you want to use for suggestions. The following options can be configured for a suggester: FuzzyMatching, SortExpression.

    See Also:
    Serialized Form
    • Constructor Detail

      • Suggester

        public Suggester()
    • Method Detail

      • setSuggesterName

        public void setSuggesterName​(String suggesterName)
        Parameters:
        suggesterName -
      • getSuggesterName

        public String getSuggesterName()
        Returns:
      • withSuggesterName

        public Suggester withSuggesterName​(String suggesterName)
        Parameters:
        suggesterName -
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • setDocumentSuggesterOptions

        public void setDocumentSuggesterOptions​(DocumentSuggesterOptions documentSuggesterOptions)
        Parameters:
        documentSuggesterOptions -
      • withDocumentSuggesterOptions

        public Suggester withDocumentSuggesterOptions​(DocumentSuggesterOptions documentSuggesterOptions)
        Parameters:
        documentSuggesterOptions -
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • toString

        public String toString()
        Returns a string representation of this object; useful for testing and debugging.
        Overrides:
        toString in class Object
        Returns:
        A string representation of this object.
        See Also:
        Object.toString()
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class Object