Interface SuggestModel.Builder

    • Method Detail

      • query

        SuggestModel.Builder query​(String query)

        The query string specified in the suggest request.

        Parameters:
        query - The query string specified in the suggest request.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • found

        SuggestModel.Builder found​(Long found)

        The number of documents that were found to match the query string.

        Parameters:
        found - The number of documents that were found to match the query string.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • suggestions

        SuggestModel.Builder suggestions​(Collection<SuggestionMatch> suggestions)

        The documents that match the query string.

        Parameters:
        suggestions - The documents that match the query string.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • suggestions

        SuggestModel.Builder suggestions​(SuggestionMatch... suggestions)

        The documents that match the query string.

        Parameters:
        suggestions - The documents that match the query string.
        Returns:
        Returns a reference to this object so that method calls can be chained together.