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

Popular posts from this blog

java - nested exception is org.hibernate.exception.SQLGrammarException: could not extract ResultSet Hibernate+SpringMVC -

sql - Postgresql tables exists, but getting "relation does not exist" when querying -

asp.net mvc - breakpoint on javascript in CSHTML? -