Dynamic Filtered Index Aliases

I'm looking to deploy what is effectively user segmentation of my data. I
have a moderately high number of users (say 10K), and I want each to be
able to query an alias that is their own.

This is not meant as a security measure, but as a backstop. Developers on
my team will not try to guess another user's index name, but I don't want
to count on every query remembering to add user filtering.

From the docs


curl -XPOST 'http://localhost:9200/_aliases' -d '
{
"actions" : [
{
"add" : {
"index" : "test1",
"alias" : "alias2",
"filter" : { "term" : { "user" : "kimchy" } }
}
}
]
}

Is what I want except that I want the term == alias so


curl -XPOST 'http://localhost:9200/aliases' -d '
{
"actions" : [
{
"add" : {
"index" : "test1",
"alias" : "alias
[X]",
"filter" : { "term" : { "user" : [X] } }
}
}
]
}

then

http://localhost:9200/alias_bob/_search

would let you search only bob's data

Does ES have anything like this? Is it coming?

Thanks,
John

--
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/99901585-e0f5-4905-82d6-632586e96db2%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.