Class MtermvectorsRequest
- All Implemented Interfaces:
- JsonpSerializable
 Get multiple term vectors with a single request. You can specify existing
 documents by index and ID or provide artificial documents in the body of the
 request. You can specify the index in the request body or request URI. The
 response contains a docs array with all the fetched termvectors.
 Each element has the structure provided by the termvectors API.
 
Artificial documents
 You can also use mtermvectors to generate term vectors for
 artificial documents provided in the body of the request. The mapping used is
 determined by the specified _index.
- See Also:
- 
Nested Class SummaryNested ClassesNested classes/interfaces inherited from class co.elastic.clients.elasticsearch._types.RequestBaseRequestBase.AbstractBuilder<BuilderT extends RequestBase.AbstractBuilder<BuilderT>>
- 
Field SummaryFieldsModifier and TypeFieldDescriptionstatic final JsonpDeserializer<MtermvectorsRequest>Json deserializer forMtermvectorsRequeststatic final Endpoint<MtermvectorsRequest,MtermvectorsResponse, ErrorResponse> Endpoint "mtermvectors".
- 
Method SummaryModifier and TypeMethodDescriptionfinal List<MultiTermVectorsOperation>docs()An array of existing or artificial documents.fields()A 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.ids()A simplified syntax to specify documents by their ID if they're in the same index.final Stringindex()The 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 StringThe node or shard the operation should be performed on.final Booleanrealtime()If true, the request is real-time as opposed to near-real-time.final Stringrouting()A 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 BooleanIf true, the response includes term frequency and document frequency.final Longversion()Iftrue, returns the document version as part of a hit.final VersionTypeThe version type.Methods inherited from class co.elastic.clients.elasticsearch._types.RequestBasetoString
- 
Field Details- 
_DESERIALIZERJson deserializer forMtermvectorsRequest
- 
_ENDPOINTEndpoint "mtermvectors".
 
- 
- 
Method Details- 
ofpublic static MtermvectorsRequest of(Function<MtermvectorsRequest.Builder, ObjectBuilder<MtermvectorsRequest>> fn) 
- 
docsAn array of existing or artificial documents.API name: docs
- 
fieldStatisticsIftrue, the response includes the document count, sum of document frequencies, and sum of total term frequencies.API name: field_statistics
- 
fieldsA comma-separated list or wildcard expressions of fields to include in the statistics. It is used as the default list unless a specific field list is provided in thecompletion_fieldsorfielddata_fieldsparameters.API name: fields
- 
idsA simplified syntax to specify documents by their ID if they're in the same index.API name: ids
- 
indexThe name of the index that contains the documents.API name: index
- 
offsetsIftrue, the response includes term offsets.API name: offsets
- 
payloadsIftrue, the response includes term payloads.API name: payloads
- 
positionsIftrue, the response includes term positions.API name: positions
- 
preferenceThe node or shard the operation should be performed on. It is random by default.API name: preference
- 
realtimeIf true, the request is real-time as opposed to near-real-time.API name: realtime
- 
routingA custom value used to route operations to a specific shard.API name: routing
- 
termStatisticsIf true, the response includes term frequency and document frequency.API name: term_statistics
- 
versionIftrue, returns the document version as part of a hit.API name: version
- 
versionTypeThe version type.API name: version_type
- 
serializeSerialize this object to JSON.- Specified by:
- serializein interface- JsonpSerializable
 
- 
serializeInternal
- 
setupMtermvectorsRequestDeserializerprotected static void setupMtermvectorsRequestDeserializer(ObjectDeserializer<MtermvectorsRequest.Builder> op) 
 
-