Create or update an ES|QL view
- PUT /_query/view/{name}
Stores an ES|QL query that runs whenever the view is referenced. A query that cannot be parsed is rejected. Replacing a reserved view fails.
Define reusable queries with ES|QL viewsStores an ES|QL query that runs whenever the view is referenced. A query that cannot be parsed is rejected. Replacing a reserved view fails.
Define reusable queries with ES|QL viewsvalidate
boolean · default: false
Whether to analyze the view query and return a warning when validation fails.
Validation reports an unknown index or column, including an index the caller cannot read. The view is saved even when validation reports a problem. Failures unrelated to the query, such as an overloaded cluster, produce no warning.