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.Builder
addDocs(Operation value)
Add a value todocs(List)
, creating the list if needed.MtermvectorsRequest.Builder
addDocs(java.util.function.Function<Operation.Builder,ObjectBuilder<Operation>> fn)
Add a value todocs(List)
, creating the list if needed.MtermvectorsRequest.Builder
addFields(java.lang.String value)
Add a value tofields(List)
, creating the list if needed.MtermvectorsRequest.Builder
addIds(java.lang.String value)
Add a value toids(List)
, creating the list if needed.MtermvectorsRequest
build()
Builds aMtermvectorsRequest
.MtermvectorsRequest.Builder
docs(Operation... value)
API name:docs
MtermvectorsRequest.Builder
docs(java.util.function.Function<Operation.Builder,ObjectBuilder<Operation>> fn)
Setdocs(List)
to a singleton list.MtermvectorsRequest.Builder
docs(java.util.List<Operation> value)
API name:docs
MtermvectorsRequest.Builder
fields(java.lang.String... value)
A comma-separated list of fields to return.MtermvectorsRequest.Builder
fields(java.util.List<java.lang.String> value)
A comma-separated list of fields to return.MtermvectorsRequest.Builder
fieldStatistics(java.lang.Boolean value)
Specifies if document count, sum of document frequencies and sum of total term frequencies should be returned.MtermvectorsRequest.Builder
ids(java.lang.String... value)
API name:ids
MtermvectorsRequest.Builder
ids(java.util.List<java.lang.String> value)
API name:ids
MtermvectorsRequest.Builder
index(java.lang.String value)
The index in which the document resides.MtermvectorsRequest.Builder
offsets(java.lang.Boolean value)
Specifies if term offsets should be returned.MtermvectorsRequest.Builder
payloads(java.lang.Boolean value)
Specifies if term payloads should be returned.MtermvectorsRequest.Builder
positions(java.lang.Boolean value)
Specifies if term positions should be returned.MtermvectorsRequest.Builder
preference(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.Builder
realtime(java.lang.Boolean value)
Specifies if requests are real-time as opposed to near-real-time (default: true).MtermvectorsRequest.Builder
routing(java.lang.String value)
Specific routing value.MtermvectorsRequest.Builder
termStatistics(java.lang.Boolean value)
Specifies if total term frequency and document frequency should be returned.MtermvectorsRequest.Builder
type(java.lang.String value)
The type of the document.MtermvectorsRequest.Builder
version(java.lang.Long value)
Explicit version number for concurrency controlMtermvectorsRequest.Builder
versionType(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:
build
in interfaceObjectBuilder<MtermvectorsRequest>
- Throws:
java.lang.NullPointerException
- if some of the required fields are null.
-