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

Bug when searching concrete and routing aliased indices #2682

Closed
Paikan opened this issue Feb 24, 2013 · 3 comments
Closed

Bug when searching concrete and routing aliased indices #2682

Paikan opened this issue Feb 24, 2013 · 3 comments

Comments

@Paikan
Copy link
Contributor

Paikan commented Feb 24, 2013

To reproduce:

  • let's create 2 concrete indices foo and foo_2
$ curl -XPOST 'http://localhost:9200/foo'
$ curl -XPOST 'http://localhost:9200/foo_2'
  • let's create a routing alias foo_1 for index foo and routing value 1
$ curl -XPOST 'http://localhost:9200/_aliases' -d '
{
    "actions" : [
        {
            "add" : {
                 "index" : "foo",
                 "alias" : "foo_1",
                 "routing" : "1"
            }
        }
    ]
}'
  • let's index 2 docs one in foo_1 and the other in foo_2
$ curl -XPOST 'http://localhost:9200/foo_1/type/1' -d '{"foo1":"bar1"}'
$ curl -XPOST 'http://localhost:9200/foo_2/type/2' -d '{"foo2":"bar2"}'
  • Now this search gives 1 result instead of the 2 I expected
$ curl -XGET 'http://localhost:9200/foo_*/_search' 
@Paikan
Copy link
Contributor Author

Paikan commented Feb 24, 2013

I have submitted PR #2683 that should fix it

@Paikan
Copy link
Contributor Author

Paikan commented Mar 3, 2013

Ok closing this one, thanks @s1monw

@Paikan Paikan closed this as completed Mar 3, 2013
@s1monw
Copy link
Contributor

s1monw commented Mar 3, 2013

ah cool thanks for closing this

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