Class MtermvectorsRequest.Builder
java.lang.Object
co.elastic.clients.elasticsearch.core.MtermvectorsRequest.Builder
- All Implemented Interfaces:
ObjectBuilder<MtermvectorsRequest>
- Enclosing class:
- MtermvectorsRequest
public static class MtermvectorsRequest.Builder extends java.lang.Object implements ObjectBuilder<MtermvectorsRequest>
Builder for
MtermvectorsRequest.-
Constructor Summary
Constructors Constructor Description Builder() -
Method Summary
Modifier and Type Method Description MtermvectorsRequest.BuilderaddDocs(Operation value)Add a value todocs(List), creating the list if needed.MtermvectorsRequest.BuilderaddDocs(java.util.function.Function<Operation.Builder,ObjectBuilder<Operation>> fn)Add a value todocs(List), creating the list if needed.MtermvectorsRequest.BuilderaddFields(java.lang.String value)Add a value tofields(List), creating the list if needed.MtermvectorsRequest.BuilderaddIds(java.lang.String value)Add a value toids(List), creating the list if needed.MtermvectorsRequestbuild()Builds aMtermvectorsRequest.MtermvectorsRequest.Builderdocs(Operation... value)API name:docsMtermvectorsRequest.Builderdocs(java.util.function.Function<Operation.Builder,ObjectBuilder<Operation>> fn)Setdocs(List)to a singleton list.MtermvectorsRequest.Builderdocs(java.util.List<Operation> value)API name:docsMtermvectorsRequest.Builderfields(java.lang.String... value)A comma-separated list of fields to return.MtermvectorsRequest.Builderfields(java.util.List<java.lang.String> value)A comma-separated list of fields to return.MtermvectorsRequest.BuilderfieldStatistics(java.lang.Boolean value)Specifies if document count, sum of document frequencies and sum of total term frequencies should be returned.MtermvectorsRequest.Builderids(java.lang.String... value)API name:idsMtermvectorsRequest.Builderids(java.util.List<java.lang.String> value)API name:idsMtermvectorsRequest.Builderindex(java.lang.String value)The index in which the document resides.MtermvectorsRequest.Builderoffsets(java.lang.Boolean value)Specifies if term offsets should be returned.MtermvectorsRequest.Builderpayloads(java.lang.Boolean value)Specifies if term payloads should be returned.MtermvectorsRequest.Builderpositions(java.lang.Boolean value)Specifies if term positions should be returned.MtermvectorsRequest.Builderpreference(java.lang.String value)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".MtermvectorsRequest.Builderrealtime(java.lang.Boolean value)Specifies if requests are real-time as opposed to near-real-time (default: true).MtermvectorsRequest.Builderrouting(java.lang.String value)Specific routing value.MtermvectorsRequest.BuildertermStatistics(java.lang.Boolean value)Specifies if total term frequency and document frequency should be returned.MtermvectorsRequest.Buildertype(java.lang.String value)The type of the document.MtermvectorsRequest.Builderversion(java.lang.Long value)Explicit version number for concurrency controlMtermvectorsRequest.BuilderversionType(VersionType value)Specific version typeMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
index
The index in which the document resides.API name:
index -
type
The type of the document.API name:
type -
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 -
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 -
addFields
Add a value tofields(List), creating the list if needed. -
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
Specifies if term offsets should be returned. Applies to all returned documents unless otherwise specified in body "params" or "docs".API name:
offsets -
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
Specifies if term positions should be returned. Applies to all returned documents unless otherwise specified in body "params" or "docs".API name:
positions -
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
Specifies if requests are real-time as opposed to near-real-time (default: true).API name:
realtime -
routing
Specific routing value. Applies to all returned documents unless otherwise specified in body "params" or "docs".API name:
routing -
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
Explicit version number for concurrency controlAPI name:
version -
versionType
Specific version typeAPI name:
version_type -
docs
API name:docs -
docs
API name:docs -
addDocs
Add a value todocs(List), creating the list if needed. -
docs
public MtermvectorsRequest.Builder docs(java.util.function.Function<Operation.Builder,ObjectBuilder<Operation>> fn)Setdocs(List)to a singleton list. -
addDocs
public MtermvectorsRequest.Builder addDocs(java.util.function.Function<Operation.Builder,ObjectBuilder<Operation>> fn)Add a value todocs(List), creating the list if needed. -
ids
API name:ids -
ids
API name:ids -
addIds
Add a value toids(List), creating the list if needed. -
build
Builds aMtermvectorsRequest.- Specified by:
buildin interfaceObjectBuilder<MtermvectorsRequest>- Throws:
java.lang.NullPointerException- if some of the required fields are null.
-