Skip to content

Document ES|QL SET directive: unmapped_fields and approximation settings#5455

Draft
florent-leborgne wants to merge 6 commits intomainfrom
docs/esql-set-unmapped-fields
Draft

Document ES|QL SET directive: unmapped_fields and approximation settings#5455
florent-leborgne wants to merge 6 commits intomainfrom
docs/esql-set-unmapped-fields

Conversation

@florent-leborgne
Copy link
Contributor

@florent-leborgne florent-leborgne commented Mar 11, 2026

Summary

  • Adds a new "Query directives with SET" section to the ES|QL in Kibana page.
  • Documents the unmapped_fields setting with its FAIL (default) and NULLIFY values, including practical use cases (failure stores, mixed-mapping indices).
  • Documents the approximation setting with its boolean and map parameter forms (num_rows, confidence_level), including suggested values from the editor's autocomplete.
  • References the ES|QL SET directive reference page for full syntax.
  • Stays Kibana-specific: describes autocomplete support and practical use cases without duplicating the ES reference content.

Closes #4963
Closes #4962

Availability check needed for approximation

In the Kibana codebase, the approximation setting currently has snapshotOnly: true and ignoreAsSuggestion: true. This means:

  • It only works in snapshot/development builds, not in released versions.
  • It does not appear in the editor's autocomplete suggestions.

We need to confirm with the ES|QL team whether snapshotOnly will be changed to false for 9.4 GA. If not, the approximation section should be removed or tagged differently before merging.

The unmapped_fields setting has snapshotOnly: false and ignoreAsSuggestion: false, so it's available in production and shown in autocomplete — no concerns there.

Related Kibana PRs

Generative AI disclosure

  1. Did you use a generative AI (GenAI) tool to assist in creating this contribution?
  • Yes
  • No
  1. If you answered "Yes" to the previous question, please specify the tool(s) and model(s) used (e.g., Google Gemini, OpenAI ChatGPT-4, etc.).

Tool(s) and model(s) used: claude-4.6-opus-high in Cursor

Add a new section about the SET query directive to the ES|QL in
Kibana page, covering the unmapped_fields setting with its FAIL
and NULLIFY values. References the ES|QL SET directive reference
page for full syntax details.

Made-with: Cursor
@github-actions
Copy link
Contributor

github-actions bot commented Mar 11, 2026

Vale Linting Results

Summary: 1 suggestion found

💡 Suggestions (1)
File Line Rule Message
explore-analyze/query-filter/languages/esql-kibana.md 194 Elastic.Wordiness Consider using 'all' instead of 'all of '.

The Vale linter checks documentation changes against the Elastic Docs style guide.

To use Vale locally or report issues, refer to Elastic style guide for Vale.

@github-actions
Copy link
Contributor

github-actions bot commented Mar 11, 2026

🔍 Preview links for changed docs

Document the approximation setting with its boolean and map
parameter forms, including num_rows and confidence_level
parameters with suggested values.

Made-with: Cursor
@florent-leborgne florent-leborgne changed the title Document ES|QL SET directive and unmapped_fields setting Document ES|QL SET directive: unmapped_fields and approximation settings Mar 11, 2026
Move the SET directive content from a nested H3 under "Write
queries" to a standalone H2 section titled "Control query behavior
with SET", placed between "Filter by time" and "Use variables and
controls". This better reflects the conceptual parity with other
top-level sections that control query behavior.

Made-with: Cursor
The SET directive is in preview per the ES|QL reference docs
and the unmapped_fields setting has preview: true in the Kibana
codebase.

Made-with: Cursor
Document the actual server-side defaults from the Elasticsearch
codebase: 100K rows without grouping, 1M with grouping, rows
minimum of 10000, confidence_level range 0.5-0.95. Also corrects
the suggested confidence_level values (max is 0.95, not 0.99
as suggested in Kibana autocomplete).

Made-with: Cursor
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[ES|QL] Support for specifying unmapped field behavior [ES|QL] Support for approximate results

1 participant