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

The +index pattern without a wildcard in the index list is handled inconsistently #3979

Closed
imotov opened this issue Oct 26, 2013 · 0 comments

Comments

@imotov
Copy link
Contributor

imotov commented Oct 26, 2013

If a cluster has three indices foo, bar and baz, the index list b*,+foo in search request is resolved into all three indices, while +foo,b* throws IndexMissingException[[+foo] missing]

Repro:

curl -XPUT "http://localhost:9200/foo/doc/1?pretty" -d '{"f": "v"}'
curl -XPUT "http://localhost:9200/bar/doc/1?pretty" -d '{"f": "v"}'
curl -XPUT "http://localhost:9200/baz/doc/1?pretty" -d '{"f": "v"}'
curl -XPOST "http://localhost:9200/_refresh?pretty"
echo "Searching indices b*,+foo - works"
curl "http://localhost:9200/b*,%2bfoo/_search?pretty"
echo "Searching indices +foo,b* - doesn't work"
curl "http://localhost:9200/%2bfoo,b*/_search?pretty"
@ghost ghost assigned imotov Oct 26, 2013
imotov added a commit to imotov/elasticsearch that referenced this issue Oct 26, 2013
@imotov imotov closed this as completed in d43f3d8 Oct 30, 2013
imotov added a commit that referenced this issue Oct 30, 2013
mute pushed a commit to mute/elasticsearch that referenced this issue Jul 29, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant