Hi, 

I'm trying to use the java-api to pass an array of parameters to a search 
template. Since the SearchRequestBuilder.setTemplateParams only allows am 
Map<String, 
String> as parameter I'm stuck. Any ideas are wellcomed. I'm using 
Elasticsearch 1.4.0


Search Template created via sense:
GET /_search/template/test
{
    "template": {
        "query": {
            "terms": {
              "searchterm": [
                "{{#searchterm}}",
                "{{.}}",
                "{{/searchterm}}"
              ]
            }
        }
    }
}

Calling the search template via REST works fine:
GET /myindex/_search/template
{
 "template": {
   "id" : "test"
 },
 "params" : {
  "searchterm" : [
      "term1",
      "term2"
    ]
 } 
}


-- 
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 [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/elasticsearch/27cafc64-d21b-4fec-8273-3f92ef92ad8f%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to