Multi routing in template aliases


(ElasticSearch Users mailing list) #1

Hi,

Is there a way to set multi routing in a template aliases like we can do in
search requests?

Ex. ofmulti routing "working" search request: curl -XGET
'http://localhost:9200/forum/_search?routing=secutenant,usertenant' -d
'{...}'

Here is the kind of template I like to set but that doesn't take in account
the multi routing on the secutenant alias:
'{
"order" : 1,
"template" : "test-*",
"settings" : {
"number_of_shards": 24
},
"mappings" : {
"default" : {
"_source" : {
"enabled" : true
},
"_routing" : {
"required" : true,
"path" : "@project"
}
}
},
"aliases" : {
"admin" : { },
"secutenant": {
"filter" : {
"or" : [
{
"terms" : { "@project" : [ "secutenant", "usertenant" ]}
}
]
},
"routing": "secutenant,usertenant"
},
"usertenant": {
"filter" : {
"terms" : { "@project" : [ "usertenant" ]}
},
"routing": "usertenant"
}
}
}'

--
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/62aecf73-eb2c-4d88-88c6-9127a82b309e%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


(system) #2