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

Allow to search across indices and types even if some types do not exists on some indices #839

Closed
jeroig opened this issue Apr 7, 2011 · 1 comment

Comments

@jeroig
Copy link

jeroig commented Apr 7, 2011

Hi,

I'm a developer of Escargot (gem to use rails with elasticsearch), i also apport some patch to rubberband (elasticsearch for ruby).

I have a problem using elasticsearch version 0.15.0 or later when i search in all indexes, specifying any types throw a error in this case.

The case is as follow:

echo "Create indexs"
curl -XPUT 'http://localhost:9200/first/tweet/1' -d '
{
"user" : "kimchy",
"postDate" : "2009-11-15T14:12:12",
"message" : "trying out Elastic Search"
}';

curl -XPUT 'http://localhost:9200/first/grillo/4' -d '
{
"user" : "kimchy",
"postDate" : "2011-01-15T14:12:12",
"message" : "Elastic Search"
}';

curl -XPUT 'http://localhost:9200/first/cote/3' -d '
{
"user" : "kimchy",
"postDate" : "2011-01-15T14:12:12",
"message" : "Elastic Search"
}';

curl -XPUT 'http://localhost:9200/second/cote/2' -d '
{
"user" : "kimchy",
"postDate" : "2011-01-15T14:12:12",
"message" : "Elastic Search"
}';

curl -XPUT 'http://localhost:9200/third/mencho/5' -d '
{
"user" : "kimchy",
"postDate" : "2011-01-15T14:12:12",
"message" : "Elastic Search"
}';

curl -XPUT 'http://localhost:9200/third/cote/6' -d '
{
"user" : "kimchy",
"postDate" : "2011-01-15T14:12:12",
"message" : "Elastic Search"
}';

echo "Refresh all"
curl -XPOST 'http://localhost:9200/_refresh'

echo "All indexes, types grillo,cote: (should be 4? or 2?)"
echo "In elasticsearch v-0.14.X return 4 with no errors, in v-0.15.X return 2 with error in log"
curl -XGET 'http://localhost:9200/_all/cote,grillo/_count?q=kimchy'

echo "Delete all indexes"
curl -XDELETE 'http://localhost:9200/first/'
curl -XDELETE 'http://localhost:9200/second/'
curl -XDELETE 'http://localhost:9200/third/'

@kimchy
Copy link
Member

kimchy commented Apr 7, 2011

Allow to search across indices and types even if some types do not exists on some indices, closed by 1fdef91.

@kimchy kimchy closed this as completed Apr 7, 2011
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