ScrollableHitSource.BasicHit
public static interface ScrollableHitSource.Hit
SearchHit
but with all the things reindex needs in convenient
methods.Modifier and Type | Method | Description |
---|---|---|
java.lang.String |
getId() |
The document id of the hit.
|
java.lang.String |
getIndex() |
The index in which the hit is stored.
|
java.lang.String |
getParent() |
The document id of the parent of the hit if there is a parent or null if there isn't.
|
java.lang.String |
getRouting() |
The routing on the hit if there is any or null if there isn't.
|
BytesReference |
getSource() |
The source of the hit.
|
java.lang.String |
getType() |
The type that the hit has.
|
long |
getVersion() |
The version of the match or
-1 if the version wasn't requested. |
XContentType |
getXContentType() |
The content type of the hit source.
|
java.lang.String getIndex()
java.lang.String getType()
java.lang.String getId()
long getVersion()
-1
if the version wasn't requested. The -1
keeps it inline with Elasticsearch's
internal APIs.@Nullable BytesReference getSource()
@Nullable XContentType getXContentType()
@Nullable java.lang.String getParent()
@Nullable java.lang.String getRouting()