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
es hadoop query all type #583
Comments
Sorry I'm not following. Can you explain what index/type are you trying to use and it's not working? Thanks, |
I have a index named "error_info7" with a type named "20150104", if I run spark code How can I query all type in an index, or don't declare index type to query whole index with es-hadoop |
|
It doesn't work. According to official document, you can use _all to replace index for cross multi index query, but I find nothing about all type placeholder Using es-hadoop 2.2.0-m1 |
@adol001 thanks. I'll look into it and report back. |
I've pushed a fix in master that allows the resource to be skipped. Note that this will only work for reading and when the schema is likely the same across types. |
it seems it must be point a index type follow index name, even if you can use multi type for search like this(https://www.elastic.co/guide/en/elasticsearch/reference/current/search-search.html#search-multi-index-type) in es hadoop
For example:"table/partition" is a good resource for esRdd to read,but only "table" can't satisfy the format (Exception in thread "main" org.elasticsearch.hadoop.EsHadoopIllegalArgumentException: invalid resource given; expecting [index]/[type] - received table)
The text was updated successfully, but these errors were encountered: