allow_no_indicesboolean
If `false`, the request returns an error if any wildcard expression, index alias, or `_all` value targets only missing or closed indexes.
This behavior applies even if the request targets other open indexes.
For example, a request targeting `foo*,bar*` returns an error if an index starts with `foo` but no index starts with `bar`.
ccs_minimize_roundtripsboolean
If `true`, network round-trips are minimized for cross-cluster search requests.
Default true
expand_wildcardsoneOf
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 as `open,hidden`.
Valid values are: `all`, `open`, `closed`, `hidden`, `none`.
explainboolean
If `true`, the response includes additional details about score computation as part of a hit.
ignore_throttledboolean
If `true`, specified concrete, expanded, or aliased indexes are not included in the response when throttled.
ignore_unavailableboolean
If `false`, the request returns an error if it targets a missing or closed index.
phase_tookboolean
Indicates whether to return phase-level `took` time values in the response.
Default false
preferencestring
Specifies the node or shard the operation should be performed on.
Random by default.
Default "random"
profileboolean
If `true`, the query execution is profiled.
rest_total_hits_as_intboolean
If `true`, `hits.total` are rendered as an integer in the response.
Default false
routingoneOf
A custom value used to route operations to a specific shard.
scrollstring
Specifies how long a consistent view of the index
should be maintained for scrolled search.
search_pipelinestring
Customizable sequence of processing stages applied to search queries.
search_typeoneOf
The type of the search operation.
typed_keysboolean
If `true`, the response prefixes aggregation and suggester names with their respective types.
prettyboolean
Whether to pretty-format the returned JSON response.
Default false
humanboolean
Whether to return human-readable values for statistics.
Default false
error_traceboolean
Whether to include the stack trace of returned errors.
Default false
sourcestring
The URL-encoded request definition. Useful for libraries that do not accept a request body for non-POST requests.
filter_pathoneOf
A comma-separated list of filters used to filter the response. Use wildcards to match any field or part of a field's name. To exclude fields, use `-`.