elasticsearch/docs/reference/query-languages
Nik Everett 1b151eda4b
ESQL: Compute engine support for tagged queries (#128521)
Begins adding support for running "tagged queries" to the compute
engine. Here, it's just the `LuceneSourceOperator` because that's
useful and contained.

Example time! Say you are running:
```
FROM foo
| STATS MAX(v) BY ROUND_TO(g, 0, 100, 1000, 100000)
```

It's *often* faster to run this as four queries:
* The docs that round to `0`
* The docs that round to `100`
* The docs that round to `1000`
* The docs that round to `100000`

This creates an ESQL operator that can run these queries, one after the
other and attach those tags.

Aggs uses this trick and it's *way* faster when it can push down count
queries, but it's still faster when it pushes doc loading things. This
implementation in `LuceneSourceOperator` is quite similar to the doc
loading version in _search.

I don't have performance measurements yet because I haven't plugged this
into the language. In _search we call this `filter-by-filter` and enable
it when each group averages to more than 5000 documents and when there
isn't an `_doc_count` field. It's faster in those cases not to push. I
expect we'll be pretty similar.
2025-05-29 12:41:58 -04:00
..
eql [docs] Fix various syntax and rendering errors (#127062) 2025-04-24 17:57:03 +02:00
esql ESQL: Compute engine support for tagged queries (#128521) 2025-05-29 12:41:58 -04:00
images [DOCS] Fix broken images (#126648) 2025-04-11 19:04:08 -07:00
query-dsl Docs: Fix match_phrase docs for zero_terms_query (#128387) 2025-05-23 19:33:26 +02:00
sql [DOCS] Replace irregular whitespaces in docs (#128199) 2025-05-20 16:20:22 +02:00
eql.md Restructure query-languages docs files for clarity (#124797) 2025-03-17 17:58:58 +01:00
esql.md [DOCS][9.x] Improve ESQL reference docs information architecture (#127248) 2025-04-25 09:54:45 +02:00
index.md [Reference] Revisit query language landing page (#127632) 2025-05-07 08:44:49 +02:00
kql.md Fix broken cross-repo links, versions in search connectors docker instructions (#123700) 2025-02-28 16:02:54 +01:00
querydsl.md Restructure query-languages docs files for clarity (#124797) 2025-03-17 17:58:58 +01:00
sql.md Restructure query-languages docs files for clarity (#124797) 2025-03-17 17:58:58 +01:00
toc.yml [DOCS][9.x] Improve ESQL reference docs information architecture (#127248) 2025-04-25 09:54:45 +02:00