【发布时间】:2018-11-06 15:36:47
【问题描述】:
我指的是文档 https://www.elastic.co/guide/en/elasticsearch/reference/current/indices-aliases.html#filtered 根据这个我们可以有一个过滤别名如下
POST /_aliases
{
"actions" : [
{
"add" : {
"index" : "test1",
"alias" : "alias2",
"filter" : { "term" : { "user" : "kimchy" } }
}
}
]
}
我有一个要求,我想使用别名对多个用户的文档进行分组, 如果我们如下创建具有多个过滤条件的别名会是一个好主意吗?
POST /_aliases
{
"actions" : [
{
"add" : {
"index" : "test1",
"alias" : "alias2",
"filter" : { "terms" : { "user" : ["kimchy","testuser1","testuser2" ]} }
}
}
]
}
我还可以对此类别名使用计数、删除按查询、更新按查询等操作吗?
此类别名是否有任何限制
问候,
【问题讨论】:
标签: elasticsearch