Class CountRequest
java.lang.Object
co.elastic.clients.elasticsearch._types.RequestBase
co.elastic.clients.elasticsearch.core.CountRequest
- All Implemented Interfaces:
JsonpSerializable
Returns number of documents matching a query.
- See Also:
-
Nested Class Summary
Nested ClassesNested classes/interfaces inherited from class co.elastic.clients.elasticsearch._types.RequestBase
RequestBase.AbstractBuilder<BuilderT extends RequestBase.AbstractBuilder<BuilderT>> -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final JsonpDeserializer<CountRequest>Json deserializer forCountRequeststatic final Endpoint<CountRequest,CountResponse, ErrorResponse> Endpoint "count". -
Method Summary
Modifier and TypeMethodDescriptionfinal BooleanIffalse, the request returns an error if any wildcard expression, index alias, or_allvalue targets only missing or closed indices.final Stringanalyzer()Analyzer to use for the query string.final BooleanIftrue, wildcard and prefix queries are analyzed.final OperatorThe default operator for query string query:ANDorOR.final Stringdf()Field to use as default where no field prefix is given in the query string.final List<ExpandWildcard>Type of index that wildcard patterns can match.final BooleanIftrue, concrete, expanded or aliased indices are ignored when frozen.final BooleanIffalse, the request returns an error if it targets a missing or closed index.index()Comma-separated list of data streams, indices, and aliases to search.final Booleanlenient()Iftrue, format-based query failures (such as providing text to a numeric field) in the query string will be ignored.final DoubleminScore()Sets the minimum_scorevalue that documents must have to be included in the result.static CountRequestfinal StringSpecifies the node or shard the operation should be performed on.final Stringq()Query in the Lucene query string syntax.final Queryquery()Defines the search definition using the Query DSL.final Stringrouting()Custom value used to route operations to a specific shard.voidserialize(jakarta.json.stream.JsonGenerator generator, JsonpMapper mapper) Serialize this object to JSON.protected voidserializeInternal(jakarta.json.stream.JsonGenerator generator, JsonpMapper mapper) protected static voidfinal LongMaximum number of documents to collect for each shard.Methods inherited from class co.elastic.clients.elasticsearch._types.RequestBase
toString
-
Field Details
-
_DESERIALIZER
Json deserializer forCountRequest -
_ENDPOINT
Endpoint "count".
-
-
Method Details
-
of
-
allowNoIndices
Iffalse, the request returns an error if any wildcard expression, index alias, or_allvalue targets only missing or closed indices. This behavior applies even if the request targets other open indices.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
Type of index that wildcard patterns can match. If the request can target data streams, this argument determines whether wildcard expressions match hidden data streams. Supports comma-separated values, such asopen,hidden.API name:
expand_wildcards -
ignoreThrottled
Iftrue, concrete, expanded or aliased indices are ignored when frozen.API name:
ignore_throttled -
index
Comma-separated list of data streams, indices, and aliases to search. Supports wildcards (*). To search all data streams and indices, omit this parameter or use*or_all.API name:
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
Defines the search definition using the Query DSL.API name:
query -
routing
Custom value used to route operations to a specific shard.API name:
routing -
terminateAfter
Maximum number of documents to collect for each shard. If a query reaches this limit, Elasticsearch terminates the query early. Elasticsearch collects documents before sorting.API name:
terminate_after -
serialize
Serialize this object to JSON.- Specified by:
serializein interfaceJsonpSerializable
-
serializeInternal
-
setupCountRequestDeserializer
-