|
||||||||||
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.common.xcontent.ToXContent |
---|
ToXContent.MapParams, ToXContent.Params |
Field Summary |
---|
Fields inherited from interface org.elasticsearch.common.xcontent.ToXContent |
---|
EMPTY_PARAMS |
Method Summary | |
---|---|
org.apache.lucene.search.Explanation |
explanation()
If enabled, the explanation of the search hit. |
SearchHitField |
field(String fieldName)
The hit field matching the given field name. |
Map<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. |
Map<String,SearchHitField> |
getFields()
A map of hit fields (from field name to hit fields) if additional fields were required to be loaded. |
Map<String,HighlightField> |
getHighlightFields()
A map of highlighted fields. |
String |
getId()
The id of the document. |
String |
getIndex()
The index of the hit. |
String[] |
getMatchedFilters()
The set of filter names the query matched. |
float |
getScore()
The score. |
SearchShardTarget |
getShard()
The shard of the search hit. |
Object[] |
getSortValues()
An array of the sort values used. |
Map<String,Object> |
getSource()
The source of the document as a map (can be null). |
String |
getSourceAsString()
The source of the document as string (can be null). |
BytesReference |
getSourceRef()
Returns bytes reference, also un compress the source if needed. |
String |
getType()
The type of the document. |
long |
getVersion()
The version of the hit. |
Map<String,HighlightField> |
highlightFields()
A map of highlighted fields. |
String |
id()
The id of the document. |
String |
index()
The index of the hit. |
boolean |
isSourceEmpty()
Is the source empty (not available) or not. |
String[] |
matchedFilters()
The set of filter names the query matched. |
float |
score()
The score. |
SearchShardTarget |
shard()
The shard of the search hit. |
Object[] |
sortValues()
An array of the sort values used. |
byte[] |
source()
The source of the document (can be null). |
Map<String,Object> |
sourceAsMap()
The source of the document as a map (can be null). |
String |
sourceAsString()
The source of the document as string (can be null). |
BytesReference |
sourceRef()
Returns bytes reference, also un compress the source if needed. |
String |
type()
The type of the document. |
long |
version()
The version of the hit. |
Methods inherited from interface org.elasticsearch.common.io.stream.Streamable |
---|
readFrom, writeTo |
Methods inherited from interface org.elasticsearch.common.xcontent.ToXContent |
---|
toXContent |
Methods inherited from interface java.lang.Iterable |
---|
iterator |
Method Detail |
---|
float score()
float getScore()
String index()
String getIndex()
String id()
String getId()
String type()
String getType()
long version()
long getVersion()
BytesReference sourceRef()
BytesReference getSourceRef()
byte[] source()
sourceRef()
so there won't be a need to copy.
boolean isSourceEmpty()
Map<String,Object> getSource()
String sourceAsString()
String getSourceAsString()
Map<String,Object> sourceAsMap() throws ElasticSearchParseException
ElasticSearchParseException
org.apache.lucene.search.Explanation explanation()
org.apache.lucene.search.Explanation getExplanation()
SearchHitField field(String fieldName)
Map<String,SearchHitField> fields()
Map<String,SearchHitField> getFields()
Map<String,HighlightField> highlightFields()
Map<String,HighlightField> getHighlightFields()
Object[] sortValues()
Object[] getSortValues()
String[] matchedFilters()
String[] getMatchedFilters()
SearchShardTarget shard()
SearchShardTarget getShard()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |