primaryTerm
API name:
_primary_term
ObjectBuilder<Hit<TDocument>>
public static class Hit.Builder<TDocument> extends java.lang.Object implements ObjectBuilder<Hit<TDocument>>
Hit
.Constructor | Description |
---|---|
Builder() |
Modifier and Type | Method | Description |
---|---|---|
Hit.Builder<TDocument> |
addIgnored(java.lang.String value) |
Add a value to
ignored(List) , creating the list if needed. |
Hit.Builder<TDocument> |
addMatchedQueries(java.lang.String value) |
Add a value to
matchedQueries(List) , creating the list if needed. |
Hit.Builder<TDocument> |
addSort(java.lang.String value) |
Add a value to
sort(List) , creating the list if needed. |
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.util.Map<java.lang.String,JsonData> value) |
API name:
fields |
Hit.Builder<TDocument> |
highlight(java.util.Map<java.lang.String,java.util.List<java.lang.String>> value) |
API name:
highlight |
Hit.Builder<TDocument> |
id(java.lang.String value) |
Required - API name:
_id |
Hit.Builder<TDocument> |
ignored(java.lang.String... value) |
API name:
_ignored |
Hit.Builder<TDocument> |
ignored(java.util.List<java.lang.String> value) |
API name:
_ignored |
Hit.Builder<TDocument> |
index(java.lang.String value) |
Required - API name:
_index |
Hit.Builder<TDocument> |
innerHits(java.lang.String key,
java.util.function.Function<InnerHitsResult.Builder,ObjectBuilder<InnerHitsResult>> fn) |
Set
innerHits(Map) to a singleton map. |
Hit.Builder<TDocument> |
innerHits(java.util.Map<java.lang.String,InnerHitsResult> value) |
API name:
inner_hits |
Hit.Builder<TDocument> |
matchedQueries(java.lang.String... value) |
API name:
matched_queries |
Hit.Builder<TDocument> |
matchedQueries(java.util.List<java.lang.String> value) |
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> |
putFields(java.lang.String key,
JsonData value) |
Add a key/value to
fields(Map) , creating the map if needed. |
Hit.Builder<TDocument> |
putHighlight(java.lang.String key,
java.util.List<java.lang.String> value) |
Add a key/value to
highlight(Map) , creating the map if needed. |
Hit.Builder<TDocument> |
putInnerHits(java.lang.String key,
InnerHitsResult value) |
Add a key/value to
innerHits(Map) , creating the map if needed. |
Hit.Builder<TDocument> |
putInnerHits(java.lang.String key,
java.util.function.Function<InnerHitsResult.Builder,ObjectBuilder<InnerHitsResult>> fn) |
Add a key/value to
innerHits(Map) , creating the map if needed. |
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.Integer value) |
API name:
_seq_no |
Hit.Builder<TDocument> |
shard(java.lang.String value) |
API name:
_shard |
Hit.Builder<TDocument> |
sort(java.lang.String... value) |
API name:
sort |
Hit.Builder<TDocument> |
sort(java.util.List<java.lang.String> value) |
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 |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
_index
_id
_score
_type
_explanation
_explanation
fields
fields(Map)
, creating the map if needed.highlight
highlight(Map)
, creating the map if needed.inner_hits
innerHits(Map)
, creating the map if needed.innerHits(Map)
to a singleton map.innerHits(Map)
, creating the map if needed.matched_queries
matched_queries
matchedQueries(List)
, creating the list if needed._nested
_nested
_ignored
_ignored
ignored(List)
, creating the list if needed._shard
_node
_routing
_source
_seq_no
_primary_term
_version
sort
sort
sort(List)
, creating the list if needed.Hit
.build
in interface ObjectBuilder<TDocument>
java.lang.NullPointerException
- if some of the required fields are null.