Class MtermvectorsRequest
java.lang.Object
org.opensearch.client.opensearch._types.RequestBase
org.opensearch.client.opensearch.core.MtermvectorsRequest
- All Implemented Interfaces:
JsonpSerializable,PlainJsonSerializable,ToCopyableBuilder<MtermvectorsRequest.Builder,MtermvectorsRequest>
@JsonpDeserializable
@Generated("org.opensearch.client.codegen.CodeGenerator")
public final class MtermvectorsRequest
extends RequestBase
implements PlainJsonSerializable, ToCopyableBuilder<MtermvectorsRequest.Builder,MtermvectorsRequest>
Returns multiple termvectors in one request.
-
Nested Class Summary
Nested ClassesNested classes/interfaces inherited from class org.opensearch.client.opensearch._types.RequestBase
RequestBase.AbstractBuilder<BuilderT extends RequestBase.AbstractBuilder<BuilderT>> -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final JsonpDeserializer<MtermvectorsRequest> Json deserializer forMtermvectorsRequeststatic final Endpoint<MtermvectorsRequest, MtermvectorsResponse, ErrorResponse> Endpoint "mtermvectors". -
Method Summary
Modifier and TypeMethodDescriptionprotected voidapplyQueryParameters(Map<String, String> params) static MtermvectorsRequest.Builderbuilder()final List<MultiTermVectorsOperation> docs()Array of existing or artificial documents.booleanfields()Comma-separated list or wildcard expressions of fields to include in the statistics.final BooleanIftrue, the response includes the document count, sum of document frequencies, and sum of total term frequencies.inthashCode()ids()Simplified syntax to specify documents by their ID if they're in the same index.final Stringindex()Name of the index that contains the documents.static MtermvectorsRequestfinal Booleanoffsets()Iftrue, the response includes term offsets.final Booleanpayloads()Iftrue, the response includes term payloads.final BooleanIftrue, the response includes term positions.final StringSpecifies the node or shard the operation should be performed on.final Booleanrealtime()Iftrue, the request is real-time as opposed to near-real-time.routing()Custom value used to route operations to a specific shard.voidserialize(jakarta.json.stream.JsonGenerator generator, JsonpMapper mapper) Serialize this object to JSON.protected voidserializeInternal(jakarta.json.stream.JsonGenerator generator, JsonpMapper mapper) protected static voidfinal BooleanIftrue, the response includes term frequency and document frequency.Create a new builderToCopyableBuilderthat is initialised with the current state of this object.final Longversion()Iftrue, returns the document version as part of a hit.final VersionTypeSpecific version type.Methods inherited from class org.opensearch.client.opensearch._types.RequestBase
errorTrace, humanMethods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.opensearch.client.json.PlainJsonSerializable
toJsonStringMethods inherited from interface org.opensearch.client.util.ToCopyableBuilder
copy
-
Field Details
-
_DESERIALIZER
Json deserializer forMtermvectorsRequest -
_ENDPOINT
Endpoint "mtermvectors".
-
-
Method Details
-
of
public static MtermvectorsRequest of(Function<MtermvectorsRequest.Builder, ObjectBuilder<MtermvectorsRequest>> fn) -
docs
Array of existing or artificial documents.API name:
docs -
fieldStatistics
Iftrue, the response includes the document count, sum of document frequencies, and sum of total term frequencies.API name:
field_statistics -
fields
Comma-separated list or wildcard expressions of fields to include in the statistics. Used as the default list unless a specific field list is provided in thecompletion_fieldsorfielddata_fieldsparameters.API name:
fields -
ids
Simplified syntax to specify documents by their ID if they're in the same index.API name:
ids -
index
Name of the index that contains the documents.API name:
index -
offsets
Iftrue, the response includes term offsets.API name:
offsets -
payloads
Iftrue, the response includes term payloads.API name:
payloads -
positions
Iftrue, the response includes term positions.API name:
positions -
preference
Specifies the node or shard the operation should be performed on. Random by default.API name:
preference -
realtime
Iftrue, the request is real-time as opposed to near-real-time.API name:
realtime -
routing
Custom value used to route operations to a specific shard.API name:
routing -
termStatistics
Iftrue, the response includes term frequency and document frequency.API name:
term_statistics -
version
Iftrue, returns the document version as part of a hit.API name:
version -
versionType
Specific version type.API name:
version_type -
serialize
Serialize this object to JSON.- Specified by:
serializein interfaceJsonpSerializable
-
serializeInternal
-
toBuilder
Description copied from interface:ToCopyableBuilderCreate a new builderToCopyableBuilderthat is initialised with the current state of this object.- Specified by:
toBuilderin interfaceToCopyableBuilder<MtermvectorsRequest.Builder,MtermvectorsRequest> - Returns:
- a new builder instance.
-
builder
-
setupMtermvectorsRequestDeserializer
protected static void setupMtermvectorsRequestDeserializer(ObjectDeserializer<MtermvectorsRequest.Builder> op) -
applyQueryParameters
- Overrides:
applyQueryParametersin classRequestBase
-
hashCode
public int hashCode() -
equals
-