Class MtermvectorsRequest
java.lang.Object
co.elastic.clients.elasticsearch._types.RequestBase
co.elastic.clients.elasticsearch._core.MtermvectorsRequest
- All Implemented Interfaces:
ElasticsearchCommonRequest
,JsonpSerializable
@JsonpDeserializable public final class MtermvectorsRequest extends RequestBase implements JsonpSerializable
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
MtermvectorsRequest.Builder
Builder forMtermvectorsRequest
.Nested classes/interfaces inherited from class co.elastic.clients.elasticsearch._types.RequestBase
RequestBase.AbstractBuilder<BuilderT extends RequestBase.AbstractBuilder<BuilderT>>
-
Field Summary
Fields Modifier and Type Field Description static JsonpDeserializer<MtermvectorsRequest>
_DESERIALIZER
Json deserializer forMtermvectorsRequest
static Endpoint<MtermvectorsRequest,MtermvectorsResponse,ElasticsearchError>
ENDPOINT
Endpoint "mtermvectors
". -
Constructor Summary
Constructors Constructor Description MtermvectorsRequest(MtermvectorsRequest.Builder builder)
MtermvectorsRequest(java.util.function.Function<MtermvectorsRequest.Builder,MtermvectorsRequest.Builder> fn)
-
Method Summary
Modifier and Type Method Description java.util.List<Operation>
docs()
API name:docs
java.util.List<java.lang.String>
fields()
A comma-separated list of fields to return.java.lang.Boolean
fieldStatistics()
Specifies if document count, sum of document frequencies and sum of total term frequencies should be returned.java.util.List<java.lang.String>
ids()
API name:ids
java.lang.String
index()
The index in which the document resides.java.lang.Boolean
offsets()
Specifies if term offsets should be returned.java.lang.Boolean
payloads()
Specifies if term payloads should be returned.java.lang.Boolean
positions()
Specifies if term positions should be returned.java.lang.String
preference()
Specify the node or shard the operation should be performed on (default: random) .Applies to all returned documents unless otherwise specified in body "params" or "docs".java.lang.Boolean
realtime()
Specifies if requests are real-time as opposed to near-real-time (default: true).java.lang.String
routing()
Specific routing value.void
serialize(jakarta.json.stream.JsonGenerator generator, JsonpMapper mapper)
Serialize this object to JSON.protected void
serializeInternal(jakarta.json.stream.JsonGenerator generator, JsonpMapper mapper)
protected static void
setupMtermvectorsRequestDeserializer(DelegatingDeserializer<MtermvectorsRequest.Builder> op)
java.lang.Boolean
termStatistics()
Specifies if total term frequency and document frequency should be returned.java.lang.String
type()
The type of the document.java.lang.Long
version()
Explicit version number for concurrency controlVersionType
versionType()
Specific version typeMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Field Details
-
_DESERIALIZER
Json deserializer forMtermvectorsRequest
-
ENDPOINT
public static final Endpoint<MtermvectorsRequest,MtermvectorsResponse,ElasticsearchError> ENDPOINTEndpoint "mtermvectors
".
-
-
Constructor Details
-
MtermvectorsRequest
-
MtermvectorsRequest
public MtermvectorsRequest(java.util.function.Function<MtermvectorsRequest.Builder,MtermvectorsRequest.Builder> fn)
-
-
Method Details
-
index
@Nullable public java.lang.String index()The index in which the document resides.API name:
index
-
type
@Nullable public java.lang.String type()The type of the document.API name:
type
-
fields
@Nullable public java.util.List<java.lang.String> fields()A comma-separated list of fields to return. Applies to all returned documents unless otherwise specified in body "params" or "docs".API name:
fields
-
fieldStatistics
@Nullable public java.lang.Boolean fieldStatistics()Specifies if document count, sum of document frequencies and sum of total term frequencies should be returned. Applies to all returned documents unless otherwise specified in body "params" or "docs".API name:
field_statistics
-
offsets
@Nullable public java.lang.Boolean offsets()Specifies if term offsets should be returned. Applies to all returned documents unless otherwise specified in body "params" or "docs".API name:
offsets
-
payloads
@Nullable public java.lang.Boolean payloads()Specifies if term payloads should be returned. Applies to all returned documents unless otherwise specified in body "params" or "docs".API name:
payloads
-
positions
@Nullable public java.lang.Boolean positions()Specifies if term positions should be returned. Applies to all returned documents unless otherwise specified in body "params" or "docs".API name:
positions
-
preference
@Nullable public java.lang.String preference()Specify the node or shard the operation should be performed on (default: random) .Applies to all returned documents unless otherwise specified in body "params" or "docs".API name:
preference
-
realtime
@Nullable public java.lang.Boolean realtime()Specifies if requests are real-time as opposed to near-real-time (default: true).API name:
realtime
-
routing
@Nullable public java.lang.String routing()Specific routing value. Applies to all returned documents unless otherwise specified in body "params" or "docs".API name:
routing
-
termStatistics
@Nullable public java.lang.Boolean termStatistics()Specifies if total term frequency and document frequency should be returned. Applies to all returned documents unless otherwise specified in body "params" or "docs".API name:
term_statistics
-
version
@Nullable public java.lang.Long version()Explicit version number for concurrency controlAPI name:
version
-
versionType
Specific version typeAPI name:
version_type
-
docs
API name:docs
-
ids
@Nullable public java.util.List<java.lang.String> ids()API name:ids
-
serialize
Serialize this object to JSON.- Specified by:
serialize
in interfaceJsonpSerializable
-
serializeInternal
-
setupMtermvectorsRequestDeserializer
protected static void setupMtermvectorsRequestDeserializer(DelegatingDeserializer<MtermvectorsRequest.Builder> op)
-