primaryTerm
The primary term assigned to the document for the indexing operation.
API name: _primary_term
JsonpSerializable
GetResponse
static final JsonpDeserializer<GetResult<Object>>
GetResult
based on named deserializers provided
by the calling JsonMapper
.protected
GetResult(GetResult.AbstractBuilder<TDocument,?> builder)
static <TDocument>
JsonpDeserializer<GetResult<TDocument>>
createGetResultDeserializer(JsonpDeserializer<TDocument> tDocumentDeserializer)
fields()
stored_fields
parameter is set to true
and
found
is true
, it contains the document fields
stored in the index.final boolean
found()
static <TDocument>
GetResult<TDocument>
getResultOf(Function<GetResult.Builder<TDocument>,ObjectBuilder<GetResult<TDocument>>> fn)
final String
id()
ignored()
_ignored
final String
index()
final Long
final String
routing()
final Long
seqNo()
void
serialize(jakarta.json.stream.JsonGenerator generator,
JsonpMapper mapper)
protected void
serializeInternal(jakarta.json.stream.JsonGenerator generator,
JsonpMapper mapper)
protected static <TDocument,
BuilderT extends GetResult.AbstractBuilder<TDocument,
BuilderT>>
void
setupGetResultDeserializer(ObjectDeserializer<BuilderT> op,
JsonpDeserializer<TDocument> tDocumentDeserializer)
final TDocument
source()
found
is true
, it contains the document data
formatted in JSON.toString()
final Long
version()
GetResult
based on named deserializers provided
by the calling JsonMapper
.
API name: _index
stored_fields
parameter is set to true
and
found
is true
, it contains the document fields
stored in the index.
API name: fields
_ignored
API name: found
API name: _id
API name: _primary_term
API name: _routing
API name: _seq_no
found
is true
, it contains the document data
formatted in JSON. If the _source
parameter is set to
false
or the stored_fields
parameter is set to
true
, it is excluded.
API name: _source
API name: _version
serialize
in interface JsonpSerializable