Class SuggestModel

    • Constructor Detail

      • SuggestModel

        public SuggestModel()
    • Method Detail

      • setQuery

        public void setQuery​(String query)

        The query string specified in the suggest request.

        Parameters:
        query - The query string specified in the suggest request.
      • getQuery

        public String getQuery()

        The query string specified in the suggest request.

        Returns:
        The query string specified in the suggest request.
      • withQuery

        public SuggestModel withQuery​(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.
      • setFound

        public void setFound​(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.
      • getFound

        public Long getFound()

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

        Returns:
        The number of documents that were found to match the query string.
      • withFound

        public SuggestModel withFound​(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.
      • getSuggestions

        public List<SuggestionMatch> getSuggestions()

        The documents that match the query string.

        Returns:
        The documents that match the query string.
      • setSuggestions

        public void setSuggestions​(Collection<SuggestionMatch> suggestions)

        The documents that match the query string.

        Parameters:
        suggestions - The documents that match the query string.
      • withSuggestions

        public SuggestModel withSuggestions​(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.
      • 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