Class CountRequest.Builder
java.lang.Object
org.opensearch.client.util.ObjectBuilderBase
org.opensearch.client.opensearch._types.RequestBase.AbstractBuilder<CountRequest.Builder>
org.opensearch.client.opensearch.core.CountRequest.Builder
- All Implemented Interfaces:
CopyableBuilder<CountRequest.Builder,,CountRequest> MutableBuilder<CountRequest.Builder,,CountRequest> ObjectBuilder<CountRequest>
- Enclosing class:
CountRequest
public static class CountRequest.Builder
extends RequestBase.AbstractBuilder<CountRequest.Builder>
implements CopyableBuilder<CountRequest.Builder,CountRequest>
Builder for
CountRequest.-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionfinal CountRequest.BuilderallowNoIndices(Boolean value) Iffalse, the request returns an error if any wildcard expression, index alias, or_allvalue targets only missing or closed indexes.final CountRequest.BuilderAnalyzer to use for the query string.final CountRequest.BuilderanalyzeWildcard(Boolean value) Iftrue, wildcard and prefix queries are analyzed.build()Builds aCountRequest.copy()Create a new builderCopyableBuilderthat is a copy of this one.final CountRequest.BuilderdefaultOperator(Operator value) The default operator for query string query:ANDorOR.final CountRequest.BuilderField to use as default where no field prefix is given in the query string.final CountRequest.BuilderexpandWildcards(List<ExpandWildcard> list) Specifies the type of index that wildcard expressions can match.final CountRequest.BuilderexpandWildcards(ExpandWildcard value, ExpandWildcard... values) Specifies the type of index that wildcard expressions can match.final CountRequest.BuilderignoreThrottled(Boolean value) Iftrue, concrete, expanded or aliased indexes are ignored when frozen.final CountRequest.BuilderignoreUnavailable(Boolean value) Iffalse, the request returns an error if it targets a missing or closed index.final CountRequest.BuilderComma-separated list of data streams, indexes, and aliases to search.final CountRequest.BuilderComma-separated list of data streams, indexes, and aliases to search.final CountRequest.BuilderIftrue, format-based query failures (such as providing text to a numeric field) in the query string will be ignored.final CountRequest.BuilderSets the minimum_scorevalue that documents must have to be included in the result.final CountRequest.Builderpreference(String value) Specifies the node or shard the operation should be performed on.final CountRequest.BuilderQuery in the Lucene query string syntax.final CountRequest.BuilderAPI name:queryfinal CountRequest.BuilderAPI name:queryfinal CountRequest.BuilderCustom value used to route operations to a specific shard.final CountRequest.BuilderCustom value used to route operations to a specific shard.protected CountRequest.Builderself()final CountRequest.BuilderterminateAfter(Integer value) Maximum number of documents to collect for each shard.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<CountRequest.Builder,CountRequest> - Returns:
- a new builder instance.
-
self
- Specified by:
selfin classRequestBase.AbstractBuilder<CountRequest.Builder>
-
allowNoIndices
Iffalse, the request returns an error if any wildcard expression, index alias, or_allvalue targets only missing or closed indexes. This behavior applies even if the request targets other open indexes.API name:
allow_no_indices -
analyzeWildcard
Iftrue, wildcard and prefix queries are analyzed. This parameter can only be used when theqquery string parameter is specified.API name:
analyze_wildcard -
analyzer
Analyzer to use for the query string. This parameter can only be used when theqquery string parameter is specified.API name:
analyzer -
defaultOperator
The default operator for query string query:ANDorOR. This parameter can only be used when theqquery string parameter is specified.API name:
default_operator -
df
Field to use as default where no field prefix is given in the query string. This parameter can only be used when theqquery string parameter is specified.API name:
df -
expandWildcards
Specifies the type of index that wildcard expressions can match. Supports comma-separated values.API name:
expand_wildcardsAdds all elements of
listtoexpandWildcards. -
expandWildcards
@Nonnull public final CountRequest.Builder expandWildcards(ExpandWildcard value, ExpandWildcard... values) Specifies the type of index that wildcard expressions can match. Supports comma-separated values.API name:
expand_wildcardsAdds one or more values to
expandWildcards. -
ignoreThrottled
Iftrue, concrete, expanded or aliased indexes are ignored when frozen.API name:
ignore_throttled -
index
Comma-separated list of data streams, indexes, and aliases to search. Supports wildcards (*). To search all data streams and indexes, omit this parameter or use*or_all.API name:
indexAdds all elements of
listtoindex. -
index
Comma-separated list of data streams, indexes, and aliases to search. Supports wildcards (*). To search all data streams and indexes, omit this parameter or use*or_all.API name:
indexAdds one or more values to
index. -
lenient
Iftrue, format-based query failures (such as providing text to a numeric field) in the query string will be ignored.API name:
lenient -
minScore
Sets the minimum_scorevalue that documents must have to be included in the result.API name:
min_score -
preference
Specifies the node or shard the operation should be performed on. Random by default.API name:
preference -
q
Query in the Lucene query string syntax.API name:
q -
query
API name:query -
query
API name:query -
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. -
terminateAfter
Maximum number of documents to collect for each shard. If a query reaches this limit, OpenSearch terminates the query early. OpenSearch collects documents before sorting.API name:
terminate_after -
build
Builds aCountRequest.- Specified by:
buildin interfaceObjectBuilder<CountRequest>- Throws:
NullPointerException- if some of the required fields are null.
-