Class SuggestionMatch

    • Constructor Detail

      • SuggestionMatch

        public SuggestionMatch()
    • Method Detail

      • setSuggestion

        public void setSuggestion​(String suggestion)

        The string that matches the query string specified in the SuggestRequest.

        Parameters:
        suggestion - The string that matches the query string specified in the SuggestRequest.
      • getSuggestion

        public String getSuggestion()

        The string that matches the query string specified in the SuggestRequest.

        Returns:
        The string that matches the query string specified in the SuggestRequest.
      • withSuggestion

        public SuggestionMatch withSuggestion​(String suggestion)

        The string that matches the query string specified in the SuggestRequest.

        Parameters:
        suggestion - The string that matches the query string specified in the SuggestRequest.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • setScore

        public void setScore​(Long score)

        The relevance score of a suggested match.

        Parameters:
        score - The relevance score of a suggested match.
      • getScore

        public Long getScore()

        The relevance score of a suggested match.

        Returns:
        The relevance score of a suggested match.
      • withScore

        public SuggestionMatch withScore​(Long score)

        The relevance score of a suggested match.

        Parameters:
        score - The relevance score of a suggested match.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • setId

        public void setId​(String id)

        The document ID of the suggested document.

        Parameters:
        id - The document ID of the suggested document.
      • getId

        public String getId()

        The document ID of the suggested document.

        Returns:
        The document ID of the suggested document.
      • withId

        public SuggestionMatch withId​(String id)

        The document ID of the suggested document.

        Parameters:
        id - The document ID of the suggested document.
        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