Hi,
How is it possible to pre-register a search template with conditionals via
REST API in version 1.3.4?
When I try to use the example template from
http://www.elasticsearch.org/guide/en/elasticsearch/reference/current/search-template.html#_conditional_clauses
I get a JsonParseException.
So the example template looks like:
POST /_search/template/test
{
"template": {
"query": {
"filtered": {
"query": {
"match": {
"line": "{{text}}"
}
},
"filter": {
{{#line_no}}
"range": {
"line_no": {
{{#start}}
"gte": "{{start}}"
{{#end}},{{/end}}
{{/start}}
{{#end}}
"lte": "{{end}}"
{{/end}}
}
}
{{/line_no}}
}
}
}
}
}
Do I have to use a mustache file for that?
Thanks in advance
Dany
--
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+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/elasticsearch/f047fc3b-3ee3-4b77-8836-847ce6613d8b%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.