Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Aliases: add an ability to specify filters on aliases #971

Closed
imotov opened this issue May 26, 2011 · 1 comment
Closed

Aliases: add an ability to specify filters on aliases #971

imotov opened this issue May 26, 2011 · 1 comment

Comments

@imotov
Copy link
Contributor

imotov commented May 26, 2011

An alias can now have a filter associated with it. Aliases with filters provide an easy way to create different "views" of the same index. The filter can be defined using Query DSL and is applied to all Search, Count, Delete By Query and More Like This operations with this alias.

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

kimchy commented May 26, 2011

Implemented by @imotov.

@kimchy kimchy closed this as completed May 26, 2011
emilykmarx pushed a commit to emilykmarx/elasticsearch that referenced this issue Dec 26, 2023
* [Doc] added the ILM pattern note

ILM pattern number part is 0-padded 6 digits wide string

Co-authored-by: Karen Metts <35154725+karenzone@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants