Class CountRequest.Builder
java.lang.Object
co.elastic.clients.elasticsearch._core.CountRequest.Builder
- All Implemented Interfaces:
ObjectBuilder<CountRequest>
- Enclosing class:
- CountRequest
public static class CountRequest.Builder extends java.lang.Object implements ObjectBuilder<CountRequest>
Builder for
CountRequest
.-
Constructor Summary
Constructors Constructor Description Builder()
-
Method Summary
Modifier and Type Method Description CountRequest.Builder
addExpandWildcards(ExpandWildcardOptions value)
Add a value toexpandWildcards(List)
, creating the list if needed.CountRequest.Builder
addIndex(java.lang.String value)
Add a value toindex(List)
, creating the list if needed.CountRequest.Builder
addType(java.lang.String value)
Add a value totype(List)
, creating the list if needed.CountRequest.Builder
allowNoIndices(java.lang.Boolean value)
Whether to ignore if a wildcard indices expression resolves into no concrete indices.CountRequest.Builder
analyzer(java.lang.String value)
The analyzer to use for the query stringCountRequest.Builder
analyzeWildcard(java.lang.Boolean value)
Specify whether wildcard and prefix queries should be analyzed (default: false)CountRequest
build()
Builds aCountRequest
.CountRequest.Builder
defaultOperator(DefaultOperator value)
The default operator for query string query (AND or OR)CountRequest.Builder
df(java.lang.String value)
The field to use as default where no field prefix is given in the query stringCountRequest.Builder
expandWildcards(ExpandWildcardOptions... value)
Whether to expand wildcard expression to concrete indices that are open, closed or both.CountRequest.Builder
expandWildcards(java.util.List<ExpandWildcardOptions> value)
Whether to expand wildcard expression to concrete indices that are open, closed or both.CountRequest.Builder
ignoreThrottled(java.lang.Boolean value)
Whether specified concrete, expanded or aliased indices should be ignored when throttledCountRequest.Builder
ignoreUnavailable(java.lang.Boolean value)
Whether specified concrete indices should be ignored when unavailable (missing or closed)CountRequest.Builder
index(java.lang.String... value)
A comma-separated list of indices to restrict the resultsCountRequest.Builder
index(java.util.List<java.lang.String> value)
A comma-separated list of indices to restrict the resultsCountRequest.Builder
lenient(java.lang.Boolean value)
Specify whether format-based query failures (such as providing text to a numeric field) should be ignoredCountRequest.Builder
minScore(java.lang.Double value)
Include only documents with a specific_score
value in the resultCountRequest.Builder
preference(java.lang.String value)
Specify the node or shard the operation should be performed on (default: random)CountRequest.Builder
q(java.lang.String value)
Query in the Lucene query string syntaxCountRequest.Builder
query(Query value)
API name:query
CountRequest.Builder
query(java.util.function.Function<Query.Builder,ObjectBuilder<Query>> fn)
API name:query
CountRequest.Builder
routing(java.lang.String value)
A comma-separated list of specific routing valuesCountRequest.Builder
terminateAfter(java.lang.Long value)
The maximum count for each shard, upon reaching which the query execution will terminate earlyCountRequest.Builder
type(java.lang.String... value)
A comma-separated list of types to restrict the resultsCountRequest.Builder
type(java.util.List<java.lang.String> value)
A comma-separated list of types to restrict the resultsMethods 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
A comma-separated list of indices to restrict the resultsAPI name:
index
-
index
A comma-separated list of indices to restrict the resultsAPI name:
index
-
addIndex
Add a value toindex(List)
, creating the list if needed. -
type
A comma-separated list of types to restrict the resultsAPI name:
type
-
type
A comma-separated list of types to restrict the resultsAPI name:
type
-
addType
Add a value totype(List)
, creating the list if needed. -
allowNoIndices
Whether to ignore if a wildcard indices expression resolves into no concrete indices. (This includes_all
string or when no indices have been specified)API name:
allow_no_indices
-
analyzer
The analyzer to use for the query stringAPI name:
analyzer
-
analyzeWildcard
Specify whether wildcard and prefix queries should be analyzed (default: false)API name:
analyze_wildcard
-
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_wildcards
-
expandWildcards
Whether to expand wildcard expression to concrete indices that are open, closed or both.API name:
expand_wildcards
-
addExpandWildcards
Add a value toexpandWildcards(List)
, creating the list if needed. -
ignoreThrottled
Whether specified concrete, expanded or aliased indices should be ignored when throttledAPI name:
ignore_throttled
-
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_score
value in the resultAPI name:
min_score
-
preference
Specify the node or shard the operation should be performed on (default: random)API name:
preference
-
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
-
q
Query in the Lucene query string syntaxAPI name:
q
-
query
API name:query
-
query
public CountRequest.Builder query(java.util.function.Function<Query.Builder,ObjectBuilder<Query>> fn)API name:query
-
build
Builds aCountRequest
.- Specified by:
build
in interfaceObjectBuilder<CountRequest>
- Throws:
java.lang.NullPointerException
- if some of the required fields are null.
-