|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface SearchHit
A single search hit.
SearchHits
Nested Class Summary |
---|
Nested classes/interfaces inherited from interface org.elasticsearch.util.xcontent.ToXContent |
---|
ToXContent.MapParams, ToXContent.Params |
Field Summary |
---|
Fields inherited from interface org.elasticsearch.util.xcontent.ToXContent |
---|
EMPTY_PARAMS |
Method Summary | |
---|---|
org.apache.lucene.search.Explanation |
explanation()
If enabled, the explanation of the search hit. |
java.util.Map<java.lang.String,SearchHitField> |
fields()
A map of hit fields (from field name to hit fields) if additional fields were required to be loaded. |
org.apache.lucene.search.Explanation |
getExplanation()
If enabled, the explanation of the search hit. |
java.util.Map<java.lang.String,SearchHitField> |
getFields()
A map of hit fields (from field name to hit fields) if additional fields were required to be loaded. |
java.util.Map<java.lang.String,HighlightField> |
getHighlightFields()
A map of highlighted fields. |
java.lang.String |
getId()
The id of the document. |
java.lang.String |
getIndex()
The index of the hit. |
SearchShardTarget |
getShard()
The shard of the search hit. |
java.util.Map<java.lang.String,java.lang.Object> |
getSource()
The source of the document as a map (can be null). |
java.lang.String |
getType()
The type of the document. |
java.util.Map<java.lang.String,HighlightField> |
highlightFields()
A map of highlighted fields. |
java.lang.String |
id()
The id of the document. |
java.lang.String |
index()
The index of the hit. |
SearchShardTarget |
shard()
The shard of the search hit. |
byte[] |
source()
The source of the document (can be null). |
java.util.Map<java.lang.String,java.lang.Object> |
sourceAsMap()
The source of the document as a map (can be null). |
java.lang.String |
sourceAsString()
The source of the document as string (can be null). |
java.lang.String |
type()
The type of the document. |
Methods inherited from interface org.elasticsearch.util.io.stream.Streamable |
---|
readFrom, writeTo |
Methods inherited from interface org.elasticsearch.util.xcontent.ToXContent |
---|
toXContent |
Methods inherited from interface java.lang.Iterable |
---|
iterator |
Method Detail |
---|
java.lang.String index()
java.lang.String getIndex()
java.lang.String id()
java.lang.String getId()
java.lang.String type()
java.lang.String getType()
byte[] source()
java.util.Map<java.lang.String,java.lang.Object> getSource()
java.lang.String sourceAsString()
java.util.Map<java.lang.String,java.lang.Object> sourceAsMap() throws ElasticSearchParseException
ElasticSearchParseException
org.apache.lucene.search.Explanation explanation()
org.apache.lucene.search.Explanation getExplanation()
java.util.Map<java.lang.String,SearchHitField> fields()
java.util.Map<java.lang.String,SearchHitField> getFields()
java.util.Map<java.lang.String,HighlightField> highlightFields()
java.util.Map<java.lang.String,HighlightField> getHighlightFields()
SearchShardTarget shard()
SearchShardTarget getShard()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |