elastic / elasticsearch

Free and Open Source, Distributed, RESTful Search Engine
https://www.elastic.co/products/elasticsearch
Other
1.12k stars 24.83k forks source link

ESQL: Do *something* `search.allow_expensive_queries` #112208

Open nik9000 opened 2 months ago

nik9000 commented 2 months ago

Description

We should do something with search.allow_expensive_queries. At a minimum we should document how it works with ESQL, which means we should test it. ESQL, in spirit, allows expensive things all the time. If you disallow expensive things then you disallow a lot of ESQL. We could make some very fancy things here, but at a minimum we should figure out what exists now.

Maybe search.allow_expensive_queries shouldn't apply to ESQL at all?

elasticsearchmachine commented 2 months ago

Pinging @elastic/es-analytical-engine (Team:Analytics)

nik9000 commented 2 months ago

@iverase volunteered to investigate how things work right now.