Class CountRequest.Builder
java.lang.Object
co.elastic.clients.util.ObjectBuilderBase
co.elastic.clients.util.WithJsonObjectBuilderBase<BuilderT>
co.elastic.clients.elasticsearch._types.RequestBase.AbstractBuilder<CountRequest.Builder>
co.elastic.clients.elasticsearch.core.CountRequest.Builder
- All Implemented Interfaces:
WithJson<CountRequest.Builder>,ObjectBuilder<CountRequest>
- Enclosing class:
- CountRequest
public static class CountRequest.Builder
extends RequestBase.AbstractBuilder<CountRequest.Builder>
implements ObjectBuilder<CountRequest>
Builder for
CountRequest.-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionfinal CountRequest.BuilderallowNoIndices(Boolean value) Whether to ignore if a wildcard indices expression resolves into no concrete indices.final CountRequest.BuilderThe analyzer to use for the query stringfinal CountRequest.BuilderanalyzeWildcard(Boolean value) Specify whether wildcard and prefix queries should be analyzed (default: false)build()Builds aCountRequest.final CountRequest.BuilderdefaultOperator(Operator value) The default operator for query string query (AND or OR)final CountRequest.BuilderThe field to use as default where no field prefix is given in the query stringfinal CountRequest.BuilderexpandWildcards(ExpandWildcard value, ExpandWildcard... values) Whether to expand wildcard expression to concrete indices that are open, closed or both.final CountRequest.BuilderexpandWildcards(List<ExpandWildcard> list) Whether to expand wildcard expression to concrete indices that are open, closed or both.final CountRequest.BuilderignoreThrottled(Boolean value) Whether specified concrete, expanded or aliased indices should be ignored when throttledfinal CountRequest.BuilderignoreUnavailable(Boolean value) Whether specified concrete indices should be ignored when unavailable (missing or closed)final CountRequest.BuilderA comma-separated list of indices to restrict the resultsfinal CountRequest.BuilderA comma-separated list of indices to restrict the resultsfinal CountRequest.BuilderSpecify whether format-based query failures (such as providing text to a numeric field) should be ignoredfinal CountRequest.BuilderInclude only documents with a specific_scorevalue in the resultfinal CountRequest.Builderpreference(String value) Specify the node or shard the operation should be performed on (default: random)final CountRequest.BuilderQuery in the Lucene query string syntaxfinal CountRequest.BuilderAPI name:queryfinal CountRequest.BuilderAPI name:queryfinal CountRequest.BuilderA comma-separated list of specific routing valuesprotected CountRequest.Builderself()final CountRequest.BuilderterminateAfter(Long value) The maximum count for each shard, upon reaching which the query execution will terminate earlyfinal CountRequest.BuilderA comma-separated list of types to restrict the resultsfinal CountRequest.BuilderA comma-separated list of types to restrict the resultsMethods inherited from class co.elastic.clients.util.WithJsonObjectBuilderBase
withJsonMethods inherited from class co.elastic.clients.util.ObjectBuilderBase
_checkSingleUse, _listAdd, _listAddAll, _mapPut, _mapPutAll
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
allowNoIndices
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
Specify whether wildcard and prefix queries should be analyzed (default: false)API name:
analyze_wildcard -
analyzer
The analyzer to use for the query stringAPI name:
analyzer -
defaultOperator
The default operator for query string query (AND or OR)API name:
default_operator -
df
The field to use as default where no field prefix is given in the query stringAPI name:
df -
expandWildcards
Whether to expand wildcard expression to concrete indices that are open, closed or both.API name:
expand_wildcardsAdds all elements of
listtoexpandWildcards. -
expandWildcards
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
Whether specified concrete, expanded or aliased indices should be ignored when throttledAPI name:
ignore_throttled -
index
A comma-separated list of indices to restrict the resultsAPI name:
indexAdds all elements of
listtoindex. -
index
A comma-separated list of indices to restrict the resultsAPI name:
indexAdds one or more values to
index. -
lenient
Specify whether format-based query failures (such as providing text to a numeric field) should be ignoredAPI name:
lenient -
minScore
Include only documents with a specific_scorevalue in the resultAPI name:
min_score -
preference
Specify the node or shard the operation should be performed on (default: random)API name:
preference -
q
Query in the Lucene query string syntaxAPI name:
q -
query
API name:query -
query
API name:query -
routing
A comma-separated list of specific routing valuesAPI name:
routing -
terminateAfter
The maximum count for each shard, upon reaching which the query execution will terminate earlyAPI name:
terminate_after -
type
A comma-separated list of types to restrict the resultsAPI name:
typeAdds all elements of
listtotype. -
type
A comma-separated list of types to restrict the resultsAPI name:
typeAdds one or more values to
type. -
self
- Specified by:
selfin classRequestBase.AbstractBuilder<CountRequest.Builder>
-
build
Builds aCountRequest.- Specified by:
buildin interfaceObjectBuilder<CountRequest>- Throws:
NullPointerException- if some of the required fields are null.
-