How to implement range index alias in elasticsearch 2.X -
elastic has replaced range filter range query. having trouble creating index alias using range , unfortunately there not example on index alias page on how this. alias "female_teen" documents gender = female , age = 13-19.
here using create alias: range seems ignored.
{ "actions" : [ { "add" : { "index" : "people", "alias" : "female_teen", "filter" : { "term" : { "gender" : "female" } }, "query" : { "range" : { "age" : "[13 19]" } } } } ] }
Comments
Post a Comment