public class Hit
extends java.lang.Object
implements java.io.Serializable, java.lang.Cloneable
Information about a document that matches the search request.
Modifier and Type | Field and Description |
---|---|
private SdkInternalMap<java.lang.String,java.lang.String> |
exprs
The expressions returned from a document that matches the search request.
|
private SdkInternalMap<java.lang.String,java.util.List<java.lang.String>> |
fields
The fields returned from a document that matches the search request.
|
private SdkInternalMap<java.lang.String,java.lang.String> |
highlights
The highlights returned from a document that matches the search request.
|
private java.lang.String |
id
The document ID of a document that matches the search request.
|
Constructor and Description |
---|
Hit() |
Modifier and Type | Method and Description |
---|---|
Hit |
addExprsEntry(java.lang.String key,
java.lang.String value) |
Hit |
addFieldsEntry(java.lang.String key,
java.util.List<java.lang.String> value) |
Hit |
addHighlightsEntry(java.lang.String key,
java.lang.String value) |
Hit |
clearExprsEntries()
Removes all the entries added into Exprs.
|
Hit |
clearFieldsEntries()
Removes all the entries added into Fields.
|
Hit |
clearHighlightsEntries()
Removes all the entries added into Highlights.
|
Hit |
clone() |
boolean |
equals(java.lang.Object obj) |
java.util.Map<java.lang.String,java.lang.String> |
getExprs()
The expressions returned from a document that matches the search request.
|
java.util.Map<java.lang.String,java.util.List<java.lang.String>> |
getFields()
The fields returned from a document that matches the search request.
|
java.util.Map<java.lang.String,java.lang.String> |
getHighlights()
The highlights returned from a document that matches the search request.
|
java.lang.String |
getId()
The document ID of a document that matches the search request.
|
int |
hashCode() |
void |
setExprs(java.util.Map<java.lang.String,java.lang.String> exprs)
The expressions returned from a document that matches the search request.
|
void |
setFields(java.util.Map<java.lang.String,java.util.List<java.lang.String>> fields)
The fields returned from a document that matches the search request.
|
void |
setHighlights(java.util.Map<java.lang.String,java.lang.String> highlights)
The highlights returned from a document that matches the search request.
|
void |
setId(java.lang.String id)
The document ID of a document that matches the search request.
|
java.lang.String |
toString()
Returns a string representation of this object; useful for testing and
debugging.
|
Hit |
withExprs(java.util.Map<java.lang.String,java.lang.String> exprs)
The expressions returned from a document that matches the search request.
|
Hit |
withFields(java.util.Map<java.lang.String,java.util.List<java.lang.String>> fields)
The fields returned from a document that matches the search request.
|
Hit |
withHighlights(java.util.Map<java.lang.String,java.lang.String> highlights)
The highlights returned from a document that matches the search request.
|
Hit |
withId(java.lang.String id)
The document ID of a document that matches the search request.
|
private java.lang.String id
The document ID of a document that matches the search request.
private SdkInternalMap<java.lang.String,java.util.List<java.lang.String>> fields
The fields returned from a document that matches the search request.
private SdkInternalMap<java.lang.String,java.lang.String> exprs
The expressions returned from a document that matches the search request.
private SdkInternalMap<java.lang.String,java.lang.String> highlights
The highlights returned from a document that matches the search request.
public void setId(java.lang.String id)
The document ID of a document that matches the search request.
id
- The document ID of a document that matches the search request.public java.lang.String getId()
The document ID of a document that matches the search request.
public Hit withId(java.lang.String id)
The document ID of a document that matches the search request.
id
- The document ID of a document that matches the search request.public java.util.Map<java.lang.String,java.util.List<java.lang.String>> getFields()
The fields returned from a document that matches the search request.
public void setFields(java.util.Map<java.lang.String,java.util.List<java.lang.String>> fields)
The fields returned from a document that matches the search request.
fields
- The fields returned from a document that matches the search
request.public Hit withFields(java.util.Map<java.lang.String,java.util.List<java.lang.String>> fields)
The fields returned from a document that matches the search request.
fields
- The fields returned from a document that matches the search
request.public Hit addFieldsEntry(java.lang.String key, java.util.List<java.lang.String> value)
public Hit clearFieldsEntries()
public java.util.Map<java.lang.String,java.lang.String> getExprs()
The expressions returned from a document that matches the search request.
public void setExprs(java.util.Map<java.lang.String,java.lang.String> exprs)
The expressions returned from a document that matches the search request.
exprs
- The expressions returned from a document that matches the search
request.public Hit withExprs(java.util.Map<java.lang.String,java.lang.String> exprs)
The expressions returned from a document that matches the search request.
exprs
- The expressions returned from a document that matches the search
request.public Hit addExprsEntry(java.lang.String key, java.lang.String value)
public Hit clearExprsEntries()
public java.util.Map<java.lang.String,java.lang.String> getHighlights()
The highlights returned from a document that matches the search request.
public void setHighlights(java.util.Map<java.lang.String,java.lang.String> highlights)
The highlights returned from a document that matches the search request.
highlights
- The highlights returned from a document that matches the search
request.public Hit withHighlights(java.util.Map<java.lang.String,java.lang.String> highlights)
The highlights returned from a document that matches the search request.
highlights
- The highlights returned from a document that matches the search
request.public Hit addHighlightsEntry(java.lang.String key, java.lang.String value)
public Hit clearHighlightsEntries()
public java.lang.String toString()
toString
in class java.lang.Object
Object.toString()
public boolean equals(java.lang.Object obj)
equals
in class java.lang.Object
public int hashCode()
hashCode
in class java.lang.Object
public Hit clone()
clone
in class java.lang.Object