Class MultiTermVectorsOperation
java.lang.Object
co.elastic.clients.elasticsearch.core.mtermvectors.MultiTermVectorsOperation
- All Implemented Interfaces:
JsonpSerializable
@JsonpDeserializable
public class MultiTermVectorsOperation
extends Object
implements JsonpSerializable
- See Also:
-
Nested Class Summary
-
Field Summary
Modifier and TypeFieldDescriptionstatic final JsonpDeserializer<MultiTermVectorsOperation>
Json deserializer forMultiTermVectorsOperation
-
Method Summary
Modifier and TypeMethodDescriptionfinal JsonData
doc()
An artificial document (a document not present in the index) for which you want to retrieve term vectors.fields()
Comma-separated list or wildcard expressions of fields to include in the statistics.final Boolean
Iftrue
, the response includes the document count, sum of document frequencies, and sum of total term frequencies.final Filter
filter()
Filter terms based on their tf-idf scores.final String
id()
Required - The ID of the document.final String
index()
The index of the document.static MultiTermVectorsOperation
final Boolean
offsets()
Iftrue
, the response includes term offsets.final Boolean
payloads()
Iftrue
, the response includes term payloads.final Boolean
Iftrue
, the response includes term positions.final String
routing()
Custom value used to route operations to a specific shard.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
setupMultiTermVectorsOperationDeserializer
(ObjectDeserializer<MultiTermVectorsOperation.Builder> op) final Boolean
If true, the response includes term frequency and document frequency.toString()
final Long
version()
Iftrue
, returns the document version as part of a hit.final VersionType
Specific version type.
-
Field Details
-
_DESERIALIZER
Json deserializer forMultiTermVectorsOperation
-
-
Method Details
-
of
public static MultiTermVectorsOperation of(Function<MultiTermVectorsOperation.Builder, ObjectBuilder<MultiTermVectorsOperation>> fn) -
id
Required - The ID of the document.API name:
_id
-
index
The index of the document.API name:
_index
-
doc
An artificial document (a document not present in the index) for which you want to retrieve term vectors.API name:
doc
-
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_fields
orfielddata_fields
parameters.API name:
fields
-
fieldStatistics
Iftrue
, the response includes the document count, sum of document frequencies, and sum of total term frequencies.API name:
field_statistics
-
filter
Filter terms based on their tf-idf scores.API name:
filter
-
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
-
routing
Custom value used to route operations to a specific shard.API name:
routing
-
termStatistics
If true, 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:
serialize
in interfaceJsonpSerializable
-
serializeInternal
-
toString
-
setupMultiTermVectorsOperationDeserializer
protected static void setupMultiTermVectorsOperationDeserializer(ObjectDeserializer<MultiTermVectorsOperation.Builder> op)
-