Class MtermvectorsRequest.Builder
- All Implemented Interfaces:
CopyableBuilder<MtermvectorsRequest.Builder,,MtermvectorsRequest> MutableBuilder<MtermvectorsRequest.Builder,,MtermvectorsRequest> ObjectBuilder<MtermvectorsRequest>
- Enclosing class:
MtermvectorsRequest
MtermvectorsRequest.-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds aMtermvectorsRequest.copy()Create a new builderCopyableBuilderthat is a copy of this one.Array of existing or artificial documents.docs(List<MultiTermVectorsOperation> list) Array of existing or artificial documents.docs(MultiTermVectorsOperation value, MultiTermVectorsOperation... values) Array of existing or artificial documents.Comma-separated list or wildcard expressions of fields to include in the statistics.Comma-separated list or wildcard expressions of fields to include in the statistics.fieldStatistics(Boolean value) Iftrue, the response includes the document count, sum of document frequencies, and sum of total term frequencies.Simplified syntax to specify documents by their ID if they're in the same index.Simplified syntax to specify documents by their ID if they're in the same index.Name of the index that contains the documents.Iftrue, the response includes term offsets.Iftrue, the response includes term payloads.Iftrue, the response includes term positions.preference(String value) Specifies the node or shard the operation should be performed on.Iftrue, the request is real-time as opposed to near-real-time.Custom value used to route operations to a specific shard.Custom value used to route operations to a specific shard.protected MtermvectorsRequest.Builderself()termStatistics(Boolean value) Iftrue, the response includes term frequency and document frequency.Iftrue, returns the document version as part of a hit.versionType(VersionType value) Specific version type.Methods inherited from class org.opensearch.client.opensearch._types.RequestBase.AbstractBuilder
errorTrace, humanMethods inherited from class org.opensearch.client.util.ObjectBuilderBase
_checkSingleUse, _listAdd, _listAddAll, _listCopy, _mapCopy, _mapPut, _mapPutAllMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.opensearch.client.util.MutableBuilder
applyMutation
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
copy
Description copied from interface:CopyableBuilderCreate a new builderCopyableBuilderthat is a copy of this one.- Specified by:
copyin interfaceCopyableBuilder<MtermvectorsRequest.Builder,MtermvectorsRequest> - Returns:
- a new builder instance.
-
self
- Specified by:
selfin classRequestBase.AbstractBuilder<MtermvectorsRequest.Builder>
-
docs
Array of existing or artificial documents.API name:
docsAdds all elements of
listtodocs. -
docs
@Nonnull public final MtermvectorsRequest.Builder docs(MultiTermVectorsOperation value, MultiTermVectorsOperation... values) Array of existing or artificial documents.API name:
docsAdds one or more values to
docs. -
docs
@Nonnull public final MtermvectorsRequest.Builder docs(Function<MultiTermVectorsOperation.Builder, ObjectBuilder<MultiTermVectorsOperation>> fn) Array of existing or artificial documents.API name:
docsAdds a value to
docsusing a builder lambda. -
fieldStatistics
Iftrue, the response includes the document count, sum of document frequencies, and sum of total term frequencies.API name:
field_statistics -
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_fieldsorfielddata_fieldsparameters.API name:
fieldsAdds all elements of
listtofields. -
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_fieldsorfielddata_fieldsparameters.API name:
fieldsAdds one or more values to
fields. -
ids
Simplified syntax to specify documents by their ID if they're in the same index.API name:
idsAdds all elements of
listtoids. -
ids
Simplified syntax to specify documents by their ID if they're in the same index.API name:
idsAdds one or more values to
ids. -
index
Name of the index that contains the documents.API name:
index -
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 -
preference
Specifies the node or shard the operation should be performed on. Random by default.API name:
preference -
realtime
Iftrue, the request is real-time as opposed to near-real-time.API name:
realtime -
routing
Custom value used to route operations to a specific shard.API name:
routingAdds all elements of
listtorouting. -
routing
Custom value used to route operations to a specific shard.API name:
routingAdds one or more values to
routing. -
termStatistics
Iftrue, 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 -
build
Builds aMtermvectorsRequest.- Specified by:
buildin interfaceObjectBuilder<MtermvectorsRequest>- Throws:
NullPointerException- if some of the required fields are null.
-