I tried to implement a template request function. See the last section http://www.elasticsearch.org/guide/en/elasticsearch/reference/current/search-template.html
I added a query template using meaning. Now I need elasticsearch via the JAVA API, I need to execute this query template and save the result in SearchResponse. However, I cannot find the API associated with the request template. The only class file that is available is TemplateQueryBuilder. This class ideally builds a template request, but I'm not sure which method is called from Client to pass a TemplateQueryBuilder object. Help is appreciated.
source
share