Validating query

Hi All,

I am new to RestHighLevelClient Java API, could someone please help me on writing code for validating final query before executing in elasticsearch. I came to know that ElasticSearch is providing ValidateAPI, but there is no where given sample implementation using RestHighLevelClient object for validating query.


It's not yet there. See:

In the meantime, you need to implement that by yourself using the low level instance and by sending the GET request "manually" and reading the response "manually".

Out of curiosity, why are you using this API? I'm not seeing that used super often.

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