Class TermvectorsRequest<TDocument>
java.lang.Object
co.elastic.clients.elasticsearch._types.RequestBase
co.elastic.clients.elasticsearch.core.TermvectorsRequest<TDocument>
- All Implemented Interfaces:
ElasticsearchCommonRequest,JsonpSerializable
public final class TermvectorsRequest<TDocument> extends RequestBase implements JsonpSerializable
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classTermvectorsRequest.Builder<TDocument>Builder forTermvectorsRequest.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 Endpoint<TermvectorsRequest<?>,TermvectorsResponse,ElasticsearchError>ENDPOINTEndpoint "termvectors". -
Constructor Summary
Constructors Constructor Description TermvectorsRequest(TermvectorsRequest.Builder<TDocument> builder)TermvectorsRequest(java.util.function.Function<TermvectorsRequest.Builder<TDocument>,TermvectorsRequest.Builder<TDocument>> fn) -
Method Summary
Modifier and Type Method Description static <TDocument>
JsonpDeserializer<TermvectorsRequest<TDocument>>createTermvectorsRequestDeserializer(JsonpDeserializer<TDocument> tDocumentDeserializer)Create a json deserializer for TermvectorsRequestTDocumentdoc()API name:docjava.util.List<java.lang.String>fields()A comma-separated list of fields to return.java.lang.BooleanfieldStatistics()Specifies if document count, sum of document frequencies and sum of total term frequencies should be returned.Filterfilter()API name:filterjava.lang.Stringid()The id of the document, when not specified a doc param should be supplied.java.lang.Stringindex()Required - The index in which the document resides.java.lang.Booleanoffsets()Specifies if term offsets should be returned.java.lang.Booleanpayloads()Specifies if term payloads should be returned.java.util.Map<java.lang.String,java.lang.String>perFieldAnalyzer()API name:per_field_analyzerjava.lang.Booleanpositions()Specifies if term positions should be returned.java.lang.Stringpreference()Specify the node or shard the operation should be performed on (default: random).java.lang.Booleanrealtime()Specifies if request is real-time as opposed to near-real-time (default: true).java.lang.Stringrouting()Specific routing value.voidserialize(jakarta.json.stream.JsonGenerator generator, JsonpMapper mapper)Serialize this object to JSON.protected voidserializeInternal(jakarta.json.stream.JsonGenerator generator, JsonpMapper mapper)protected static <TDocument>
voidsetupTermvectorsRequestDeserializer(DelegatingDeserializer<TermvectorsRequest.Builder<TDocument>> op, JsonpDeserializer<TDocument> tDocumentDeserializer)java.lang.BooleantermStatistics()Specifies if total term frequency and document frequency should be returned.java.lang.Stringtype()The type of the document.java.lang.Longversion()Explicit version number for concurrency controlVersionTypeversionType()Specific version typeMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Field Details
-
ENDPOINT
public static final Endpoint<TermvectorsRequest<?>,TermvectorsResponse,ElasticsearchError> ENDPOINTEndpoint "termvectors".
-
-
Constructor Details
-
TermvectorsRequest
-
TermvectorsRequest
public TermvectorsRequest(java.util.function.Function<TermvectorsRequest.Builder<TDocument>,TermvectorsRequest.Builder<TDocument>> fn)
-
-
Method Details
-
index
public java.lang.String index()Required - The index in which the document resides.API name:
index -
id
@Nullable public java.lang.String id()The id of the document, when not specified a doc param should be supplied.API name:
id -
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.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.API name:
field_statistics -
offsets
@Nullable public java.lang.Boolean offsets()Specifies if term offsets should be returned.API name:
offsets -
payloads
@Nullable public java.lang.Boolean payloads()Specifies if term payloads should be returned.API name:
payloads -
positions
@Nullable public java.lang.Boolean positions()Specifies if term positions should be returned.API name:
positions -
preference
@Nullable public java.lang.String preference()Specify the node or shard the operation should be performed on (default: random).API name:
preference -
realtime
@Nullable public java.lang.Boolean realtime()Specifies if request is real-time as opposed to near-real-time (default: true).API name:
realtime -
routing
@Nullable public java.lang.String routing()Specific routing value.API name:
routing -
termStatistics
@Nullable public java.lang.Boolean termStatistics()Specifies if total term frequency and document frequency should be returned.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 -
doc
API name:doc -
filter
API name:filter -
perFieldAnalyzer
@Nullable public java.util.Map<java.lang.String,java.lang.String> perFieldAnalyzer()API name:per_field_analyzer -
serialize
Serialize this object to JSON.- Specified by:
serializein interfaceJsonpSerializable
-
serializeInternal
-
createTermvectorsRequestDeserializer
public static <TDocument> JsonpDeserializer<TermvectorsRequest<TDocument>> createTermvectorsRequestDeserializer(JsonpDeserializer<TDocument> tDocumentDeserializer)Create a json deserializer for TermvectorsRequest -
setupTermvectorsRequestDeserializer
protected static <TDocument> void setupTermvectorsRequestDeserializer(DelegatingDeserializer<TermvectorsRequest.Builder<TDocument>> op, JsonpDeserializer<TDocument> tDocumentDeserializer)
-