Description
Hi ,
I'm started new project in Elastic Search .
My previous one was on SOLR where I used the parameter timeAllowed in the server side and overwrite in the client side when needed to terminate long running queries and return partial results to avoid SOLR crashes .
It seems that this crusiel feature is missing in Elastic search .
I saw the parameter TerminateAfter . But as far as I understand it can apply only in the client side .
Also it seems that it will not work when running heavy aggregation query which return only small number of rows .
Also saw some workarounds like Circuit Breakers which return an error to the client .
The TimeAllowed in SOLR seems to be based on Lucene or maybe I'm wrong .
https://lucene.apache.org/core/4_4_0/core/org/apache/lucene/search/TimeLimitingCollector.html
It looks to me as a great feature to add which will help elasatic search stability and avoid from users to run bad queries on production .
Thanks
Alon