primaryTerm
API name:
_primary_termWithJson<Hit.Builder<TDocument>>, ObjectBuilder<Hit<TDocument>>public static class Hit.Builder<TDocument> extends WithJsonObjectBuilderBase<Hit.Builder<TDocument>> 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> |
ignoredFieldValues(java.lang.String key,
java.util.List<java.lang.String> value) |
API name:
ignored_field_values |
Hit.Builder<TDocument> |
ignoredFieldValues(java.util.Map<java.lang.String,java.util.List<java.lang.String>> map) |
API name:
ignored_field_values |
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 |
protected Hit.Builder<TDocument> |
self() |
|
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> |
version(java.lang.Long value) |
API name:
_version |
withJson_checkSingleUse, _listAdd, _listAddAll, _mapPut, _mapPutAllclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait_index_id_score
Defaults to Double.NaN if parsed from a JSON null value.
_explanation_explanationfields
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.
ignored_field_values
Adds all entries of map to ignoredFieldValues.
ignored_field_values
Adds an entry to ignoredFieldValues.
_shard_node_routing_source_seq_no_primary_term_versionsort
Adds all elements of list to sort.
sort
Adds one or more values to sort.
self in class WithJsonObjectBuilderBase<Hit.Builder<TDocument>>Hit.build in interface ObjectBuilder<TDocument>java.lang.NullPointerException - if some of the required fields are null.