Class CountRequest.Builder
- java.lang.Object
-
- org.opensearch.client.util.ObjectBuilderBase
-
- org.opensearch.client.opensearch.core.CountRequest.Builder
-
- All Implemented Interfaces:
ObjectBuilder<CountRequest>
- Enclosing class:
- CountRequest
public static class CountRequest.Builder extends ObjectBuilderBase implements ObjectBuilder<CountRequest>
Builder forCountRequest.
-
-
Constructor Summary
Constructors Constructor Description Builder()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description CountRequest.BuilderallowNoIndices(java.lang.Boolean value)Whether to ignore if a wildcard indices expression resolves into no concrete indices.CountRequest.Builderanalyzer(java.lang.String value)The analyzer to use for the query stringCountRequest.BuilderanalyzeWildcard(java.lang.Boolean value)Specify whether wildcard and prefix queries should be analyzed (default: false)CountRequestbuild()Builds aCountRequest.CountRequest.BuilderdefaultOperator(Operator value)The default operator for query string query (AND or OR)CountRequest.Builderdf(java.lang.String value)The field to use as default where no field prefix is given in the query stringCountRequest.BuilderexpandWildcards(java.util.List<ExpandWildcard> list)Whether to expand wildcard expression to concrete indices that are open, closed or both.CountRequest.BuilderexpandWildcards(ExpandWildcard value, ExpandWildcard... values)Whether to expand wildcard expression to concrete indices that are open, closed or both.CountRequest.BuilderignoreThrottled(java.lang.Boolean value)Whether specified concrete, expanded or aliased indices should be ignored when throttledCountRequest.BuilderignoreUnavailable(java.lang.Boolean value)Whether specified concrete indices should be ignored when unavailable (missing or closed)CountRequest.Builderindex(java.lang.String value, java.lang.String... values)A comma-separated list of indices to restrict the resultsCountRequest.Builderindex(java.util.List<java.lang.String> list)A comma-separated list of indices to restrict the resultsCountRequest.Builderlenient(java.lang.Boolean value)Specify whether format-based query failures (such as providing text to a numeric field) should be ignoredCountRequest.BuilderminScore(java.lang.Double value)Include only documents with a specific_scorevalue in the resultCountRequest.Builderpreference(java.lang.String value)Specify the node or shard the operation should be performed on (default: random)CountRequest.Builderq(java.lang.String value)Query in the Lucene query string syntaxCountRequest.Builderquery(java.util.function.Function<Query.Builder,ObjectBuilder<Query>> fn)API name:queryCountRequest.Builderquery(Query value)API name:queryCountRequest.Builderrouting(java.lang.String value)A comma-separated list of specific routing valuesCountRequest.BuilderterminateAfter(java.lang.Long value)The maximum count for each shard, upon reaching which the query execution will terminate early-
Methods inherited from class org.opensearch.client.util.ObjectBuilderBase
_checkSingleUse, _listAdd, _listAddAll, _mapPut, _mapPutAll
-
-
-
-
Method Detail
-
allowNoIndices
public final CountRequest.Builder allowNoIndices(@Nullable java.lang.Boolean value)
Whether to ignore if a wildcard indices expression resolves into no concrete indices. (This includes_allstring or when no indices have been specified)API name:
allow_no_indices
-
analyzeWildcard
public final CountRequest.Builder analyzeWildcard(@Nullable java.lang.Boolean value)
Specify whether wildcard and prefix queries should be analyzed (default: false)API name:
analyze_wildcard
-
analyzer
public final CountRequest.Builder analyzer(@Nullable java.lang.String value)
The analyzer to use for the query stringAPI name:
analyzer
-
defaultOperator
public final CountRequest.Builder defaultOperator(@Nullable Operator value)
The default operator for query string query (AND or OR)API name:
default_operator
-
df
public final CountRequest.Builder df(@Nullable java.lang.String value)
The field to use as default where no field prefix is given in the query stringAPI name:
df
-
expandWildcards
public final CountRequest.Builder expandWildcards(java.util.List<ExpandWildcard> list)
Whether to expand wildcard expression to concrete indices that are open, closed or both.API name:
expand_wildcardsAdds all elements of
listtoexpandWildcards.
-
expandWildcards
public final CountRequest.Builder expandWildcards(ExpandWildcard value, ExpandWildcard... values)
Whether to expand wildcard expression to concrete indices that are open, closed or both.API name:
expand_wildcardsAdds one or more values to
expandWildcards.
-
ignoreThrottled
public final CountRequest.Builder ignoreThrottled(@Nullable java.lang.Boolean value)
Whether specified concrete, expanded or aliased indices should be ignored when throttledAPI name:
ignore_throttled
-
ignoreUnavailable
public final CountRequest.Builder ignoreUnavailable(@Nullable java.lang.Boolean value)
Whether specified concrete indices should be ignored when unavailable (missing or closed)API name:
ignore_unavailable
-
index
public final CountRequest.Builder index(java.util.List<java.lang.String> list)
A comma-separated list of indices to restrict the resultsAPI name:
indexAdds all elements of
listtoindex.
-
index
public final CountRequest.Builder index(java.lang.String value, java.lang.String... values)
A comma-separated list of indices to restrict the resultsAPI name:
indexAdds one or more values to
index.
-
lenient
public final CountRequest.Builder lenient(@Nullable java.lang.Boolean value)
Specify whether format-based query failures (such as providing text to a numeric field) should be ignoredAPI name:
lenient
-
minScore
public final CountRequest.Builder minScore(@Nullable java.lang.Double value)
Include only documents with a specific_scorevalue in the resultAPI name:
min_score
-
preference
public final CountRequest.Builder preference(@Nullable java.lang.String value)
Specify the node or shard the operation should be performed on (default: random)API name:
preference
-
q
public final CountRequest.Builder q(@Nullable java.lang.String value)
Query in the Lucene query string syntaxAPI name:
q
-
query
public final CountRequest.Builder query(@Nullable Query value)
API name:query
-
query
public final CountRequest.Builder query(java.util.function.Function<Query.Builder,ObjectBuilder<Query>> fn)
API name:query
-
routing
public final CountRequest.Builder routing(@Nullable java.lang.String value)
A comma-separated list of specific routing valuesAPI name:
routing
-
terminateAfter
public final CountRequest.Builder terminateAfter(@Nullable java.lang.Long value)
The maximum count for each shard, upon reaching which the query execution will terminate earlyAPI name:
terminate_after
-
build
public CountRequest build()
Builds aCountRequest.- Specified by:
buildin interfaceObjectBuilder<CountRequest>- Throws:
java.lang.NullPointerException- if some of the required fields are null.
-
-