The page you linked to is for templating just the query section of a search
request. To template the entire search request there is a dedicated
endpoint described in the following link:
Let me know if this helps or not,
Colin
On Friday, 28 November 2014 11:37:26 UTC, Luke Wilson-Mawer wrote:
If I send a perfectly well formed aggregation query as a template query, I
don't get the aggregation results.
On Friday, 28 November 2014 11:48:10 UTC, Colin Goodheart-Smithe wrote:
Hi Luke,
The page you linked to is for templating just the query section of a
search request. To template the entire search request there is a dedicated
endpoint described in the following link:
Thanks Colin. This does seem like it's the problem. I am building the query
with the java query DSL but it seems to just stick the whole thing into the
query section.
TemplateQueryBuilder qb = new TemplateQueryBuilder(myQueryString, myParams)
Any idea how to get the Java API to point to the template endpoint?
Luke
On Friday, 28 November 2014 11:48:10 UTC, Colin Goodheart-Smithe wrote:
Hi Luke,
The page you linked to is for templating just the query section of a
search request. To template the entire search request there is a dedicated
endpoint described in the following link:
Apache, Apache Lucene, Apache Hadoop, Hadoop, HDFS and the yellow elephant
logo are trademarks of the
Apache Software Foundation
in the United States and/or other countries.