Validate a query

  • POST also GET /{index}/_validate/query
  • POST also GET /_validate/query

Validates a query without running it.

Path Parameters

index union IndexName | [] IndexName optional

Comma-separated list of data streams, indices, and aliases to search. Supports wildcards (*). To search all data streams or indices, omit this parameter or use * or _all.

Leave it out to use /_validate/query.

Request

query {} QueryContainer

Query in the Lucene query string syntax.

Response