primaryTerm
API name:
_primary_term
ObjectBuilder<Hit<TDocument>>
public static class Hit.Builder<TDocument> extends ObjectBuilderBase implements ObjectBuilder<Hit<TDocument>>
Hit
.Constructor | Description |
---|---|
Builder() |
Modifier and Type | Method | Description |
---|---|---|
Hit<TDocument> |
build() |
Builds a
Hit . |
Hit.Builder<TDocument> |
explanation(Explanation value) |
API name:
_explanation |
Hit.Builder<TDocument> |
explanation(java.util.function.Function<Explanation.Builder,ObjectBuilder<Explanation>> fn) |
API name:
_explanation |
Hit.Builder<TDocument> |
fields(java.lang.String key,
JsonData value) |
API name:
fields |
Hit.Builder<TDocument> |
fields(java.util.Map<java.lang.String,JsonData> map) |
API name:
fields |
Hit.Builder<TDocument> |
highlight(java.lang.String key,
java.util.List<java.lang.String> value) |
API name:
highlight |
Hit.Builder<TDocument> |
highlight(java.util.Map<java.lang.String,java.util.List<java.lang.String>> map) |
API name:
highlight |
Hit.Builder<TDocument> |
id(java.lang.String value) |
Required - API name:
_id |
Hit.Builder<TDocument> |
ignored(java.lang.String value,
java.lang.String... values) |
API name:
_ignored |
Hit.Builder<TDocument> |
ignored(java.util.List<java.lang.String> list) |
API name:
_ignored |
Hit.Builder<TDocument> |
index(java.lang.String value) |
Required - API name:
_index |
Hit.Builder<TDocument> |
innerHits(java.lang.String key,
InnerHitsResult value) |
API name:
inner_hits |
Hit.Builder<TDocument> |
innerHits(java.lang.String key,
java.util.function.Function<InnerHitsResult.Builder,ObjectBuilder<InnerHitsResult>> fn) |
API name:
inner_hits |
Hit.Builder<TDocument> |
innerHits(java.util.Map<java.lang.String,InnerHitsResult> map) |
API name:
inner_hits |
Hit.Builder<TDocument> |
matchedQueries(java.lang.String value,
java.lang.String... values) |
API name:
matched_queries |
Hit.Builder<TDocument> |
matchedQueries(java.util.List<java.lang.String> list) |
API name:
matched_queries |
Hit.Builder<TDocument> |
nested(NestedIdentity value) |
API name:
_nested |
Hit.Builder<TDocument> |
nested(java.util.function.Function<NestedIdentity.Builder,ObjectBuilder<NestedIdentity>> fn) |
API name:
_nested |
Hit.Builder<TDocument> |
node(java.lang.String value) |
API name:
_node |
Hit.Builder<TDocument> |
primaryTerm(java.lang.Long value) |
API name:
_primary_term |
Hit.Builder<TDocument> |
routing(java.lang.String value) |
API name:
_routing |
Hit.Builder<TDocument> |
score(java.lang.Double value) |
API name:
_score |
Hit.Builder<TDocument> |
seqNo(java.lang.Long value) |
API name:
_seq_no |
Hit.Builder<TDocument> |
shard(java.lang.String value) |
API name:
_shard |
Hit.Builder<TDocument> |
sort(java.lang.String value,
java.lang.String... values) |
API name:
sort |
Hit.Builder<TDocument> |
sort(java.util.List<java.lang.String> list) |
API name:
sort |
Hit.Builder<TDocument> |
source(TDocument value) |
API name:
_source |
Hit.Builder<TDocument> |
tDocumentSerializer(JsonpSerializer<TDocument> value) |
Serializer for TDocument.
|
Hit.Builder<TDocument> |
type(java.lang.String value) |
API name:
_type |
Hit.Builder<TDocument> |
version(java.lang.Long value) |
API name:
_version |
_checkSingleUse, _listAdd, _listAddAll, _mapPut, _mapPutAll
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
_index
_id
_score
_type
_explanation
_explanation
fields
Adds all entries of map
to fields
.
fields
Adds an entry to fields
.
highlight
Adds all entries of map
to highlight
.
highlight
Adds an entry to highlight
.
inner_hits
Adds all entries of map
to innerHits
.
inner_hits
Adds an entry to innerHits
.
inner_hits
Adds an entry to innerHits
using a builder lambda.
matched_queries
Adds all elements of list
to matchedQueries
.
matched_queries
Adds one or more values to matchedQueries
.
_nested
_nested
_ignored
Adds all elements of list
to ignored
.
_ignored
Adds one or more values to ignored
.
_shard
_node
_routing
_source
_seq_no
_primary_term
_version
sort
Adds all elements of list
to sort
.
sort
Adds one or more values to sort
.
Hit
.build
in interface ObjectBuilder<TDocument>
java.lang.NullPointerException
- if some of the required fields are null.