sql_translate
Convert an Elasticsearch SQL SELECT into the equivalent Query DSL using _sql/translate without running it. Learn the query structure, then pass the DSL to run_query for control.
Instructions
Translate an Elasticsearch SQL SELECT into the equivalent native Query DSL via _sql/translate, without running it. Use this to learn the DSL for a query, then hand the DSL to run_query for full control (search_after, routing, profiling).
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| query | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |