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?
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?