Class Hit
- All Implemented Interfaces:
Serializable
,Cloneable
Information about a document that matches the search request.
- See Also:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionaddExprsEntry
(String key, String value) addFieldsEntry
(String key, List<String> value) addHighlightsEntry
(String key, String value) Removes all the entries added into Exprs.Removes all the entries added into Fields.Removes all the entries added into Highlights.clone()
boolean
getExprs()
The expressions returned from a document that matches the search request.The fields returned from a document that matches the search request.The highlights returned from a document that matches the search request.getId()
The document ID of a document that matches the search request.int
hashCode()
void
The expressions returned from a document that matches the search request.void
The fields returned from a document that matches the search request.void
setHighlights
(Map<String, String> highlights) The highlights returned from a document that matches the search request.void
The document ID of a document that matches the search request.toString()
Returns a string representation of this object; useful for testing and debugging.The expressions returned from a document that matches the search request.withFields
(Map<String, List<String>> fields) The fields returned from a document that matches the search request.withHighlights
(Map<String, String> highlights) The highlights returned from a document that matches the search request.The document ID of a document that matches the search request.
-
Constructor Details
-
Hit
public Hit()
-
-
Method Details
-
setId
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
The document ID of a document that matches the search request.
- Returns:
- The document ID of a document that matches the search request.
-
withId
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
The fields returned from a document that matches the search request.
- Returns:
- The fields returned from a document that matches the search request.
-
setFields
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
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.
-
addFieldsEntry
-
clearFieldsEntries
Removes all the entries added into Fields. <p> Returns a reference to this object so that method calls can be chained together. -
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
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
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.
-
addExprsEntry
-
clearExprsEntries
Removes all the entries added into Exprs. <p> Returns a reference to this object so that method calls can be chained together. -
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
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
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
-
clearHighlightsEntries
Removes all the entries added into Highlights. <p> Returns a reference to this object so that method calls can be chained together. -
toString
Returns a string representation of this object; useful for testing and debugging. -
equals
-
hashCode
public int hashCode() -
clone
-