Interface SuggestionMatch.Builder

    • Method Detail

      • suggestion

        SuggestionMatch.Builder suggestion​(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.
      • score

        SuggestionMatch.Builder score​(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.
      • id

        SuggestionMatch.Builder id​(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.