I was refering to the document https://www.elastic.co/guide/en/elasticsearch/reference/current/indices-aliases.html#filtered According to this we can have a filtered alias as follows
POST /_aliases
{
"actions" : [
{
"add" : {
"index" : "test1",
"alias" : "alias2",
"filter" : { "term" : { "user" : "kimchy" } }
}
}
]
}
I have a requirement where in I want to use alias to group documents of multiple users, will it be a good idea if we create alias with multiple filter terms as follows .
POST /_aliases
{
"actions" : [
{
"add" : {
"index" : "test1",
"alias" : "alias2",
"filter" : { "terms" : { "user" : ["kimchy","testuser1","testuser2" ]} }
}
}
]
}
Also can I use the operations like count,delete_by_query,update_by_query on such aliases ?
Are there any limitations for such aliases
Regards,