Nope. I reached my time limit for trying to get that approach to work and finished the job using one really big template. It's one more thing on my "things to explore again" list. I figured, though, that by postponing it, I would at least have the benefit of using a later version of ES when I got back to it. If you're still having issues in 1.4.4, maybe it's time to open an issue.
On Tuesday, March 24, 2015 at 12:46:44 PM UTC-4, Zdeněk Šebl wrote: > > I have same troubles now on ES 1.4.4 > > Did you found solution how to use partials in Mustache file templates? > > Thanks, > Zdenek > > Dne čtvrtek 7. srpna 2014 20:53:09 UTC+2 Glen Smith napsal(a): > >> Developing on v1.2.2, I'm deploying mustache templates by file system >> under config/scripts. >> >> When I do something like this: >> >> parent.mustache >> >> { >> "query": { >> "filtered": { >> "query": { >> "bool": { >> "must": [ >> {"match_all":{}} >> {{#condition}} >> ,{"match": {"condition": "{{condition}}"}} >> {{/condition}} >> ] >> } >> }, >> {{> child}} >> } >> } >> } >> >> child.mustache >> >> "filter": { >> "bool": { >> "must": [ >> {"query": {"match_all":{}}} >> {{#status}} >> ,{ >> "query": { >> "match": { >> "status": "{{status}}" >> } >> } >> } >> {{/status}} >> ] >> } >> } >> >> I get: >> [2014-08-07 14:48:58,454][WARN ][script ] [x_node] >> failed to load/compile script [parent] >> org.elasticsearch.common.mustache.MustacheException: Template 'child' not >> found >> >> I've tried "pathing" in parent ("scripts/child", "config/scripts/child") >> with the same result. >> >> Are partials supported? >> >> -- You received this message because you are subscribed to the Google Groups "elasticsearch" group. To unsubscribe from this group and stop receiving emails from it, send an email to elasticsearch+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/elasticsearch/dca89f6c-ca6b-4f2f-8842-708fe822d014%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.