Class Hit

    • Constructor Detail

      • Hit

        public Hit()
    • Method Detail

      • setId

        public void setId​(String id)

        The document ID of a document that matches the search request.

        Parameters:
        id - The document ID of a document that matches the search request.
      • getId

        public String getId()

        The document ID of a document that matches the search request.

        Returns:
        The document ID of a document that matches the search request.
      • withId

        public Hit withId​(String id)

        The document ID of a document that matches the search request.

        Parameters:
        id - The document ID of a document that matches the search request.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • getFields

        public Map<String,​List<String>> getFields()

        The fields returned from a document that matches the search request.

        Returns:
        The fields returned from a document that matches the search request.
      • setFields

        public void setFields​(Map<String,​List<String>> fields)

        The fields returned from a document that matches the search request.

        Parameters:
        fields - The fields returned from a document that matches the search request.
      • withFields

        public Hit withFields​(Map<String,​List<String>> fields)

        The fields returned from a document that matches the search request.

        Parameters:
        fields - The fields returned from a document that matches the search request.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • clearFieldsEntries

        public Hit clearFieldsEntries()
        Removes all the entries added into Fields. <p> Returns a reference to this object so that method calls can be chained together.
      • getExprs

        public Map<String,​String> getExprs()

        The expressions returned from a document that matches the search request.

        Returns:
        The expressions returned from a document that matches the search request.
      • setExprs

        public void setExprs​(Map<String,​String> exprs)

        The expressions returned from a document that matches the search request.

        Parameters:
        exprs - The expressions returned from a document that matches the search request.
      • withExprs

        public Hit withExprs​(Map<String,​String> exprs)

        The expressions returned from a document that matches the search request.

        Parameters:
        exprs - The expressions returned from a document that matches the search request.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • clearExprsEntries

        public Hit clearExprsEntries()
        Removes all the entries added into Exprs. <p> Returns a reference to this object so that method calls can be chained together.
      • getHighlights

        public Map<String,​String> getHighlights()

        The highlights returned from a document that matches the search request.

        Returns:
        The highlights returned from a document that matches the search request.
      • setHighlights

        public void setHighlights​(Map<String,​String> highlights)

        The highlights returned from a document that matches the search request.

        Parameters:
        highlights - The highlights returned from a document that matches the search request.
      • withHighlights

        public Hit withHighlights​(Map<String,​String> highlights)

        The highlights returned from a document that matches the search request.

        Parameters:
        highlights - The highlights returned from a document that matches the search request.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • addHighlightsEntry

        public Hit addHighlightsEntry​(String key,
                                      String value)
      • clearHighlightsEntries

        public Hit clearHighlightsEntries()
        Removes all the entries added into Highlights. <p> 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