Validating query


#1

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.

Thanks,
GRP


(David Pilato) #2

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".

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

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


(system) #3

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