Build a search template query using the java api builder classes

Hi All,

I am trying to build an inline Search template query (https://www.elastic.co/guide/en/elasticsearch/reference/5.2/search-template.html) using Java helper methods. I am looking for a QueryBuilder implementation (or something similar) so that i can construct a template query.

Basically, I have an elasticsearch query with templates defined in a config file, i want to set the values for parameters in code and want to construct a complete inline search template query and send it to the elasticsearch cluster. I am sending the query to elasticsearch using REST API (actually using Jest).

Note: I am using elasticsearch 5.2.

Thanks
Srini

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