ElasticSearch validate api overhead/latency


(Harshit Joshi) #1

ElasticSearch provides an option to validate a query before executing an entire query to all the shards.

https://www.elastic.co/guide/en/elasticsearch/reference/current/search-validate.html

How much is the latency overhead of validate api call?

There is no documentation regarding that.


(Simon Willnauer) #2

I don't have any numbers for you but the overhead should be very low. Do you just want to make sure your query is ok you an also just send a search request and see if it fails?


(Harshit Joshi) #3

That is possible yes, but executing a search query on all the shards is expensive.
We do not have very large query as of now, but some complex query which spawns across multiple indices and multiple shards should be validated first before executing.


(system) #4

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.