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

Es.index.read.missing.as.empty is not working with multiple indices #730

Closed
DynamicScope opened this issue Apr 1, 2016 · 3 comments
Closed

Comments

@DynamicScope
Copy link

Elasticsearch version: 2.2.0

JVM version: 1.8.0_73

OS version: Linux 4.1.17-22.30.amzn1.x86_64

Description of the problem including expected versus actual behavior:
This Issue has been discussed here.

@costin
Copy link
Member

costin commented Apr 4, 2016

I've added some tests and polished the code a bit in master. A couple of remarks:

  1. if a space is used, the resulting query is invalid which is no good.
  2. in ES 2.2, a non existing index will trigger an exception in the logs however that's expected - this is teh result of every index check (HEAD index/type). ES-Hadoop however behaves correctly.

Please try out the dev build when you have time.

costin added a commit that referenced this issue Apr 5, 2016
costin added a commit that referenced this issue Apr 8, 2016
relates #730

(cherry picked from commit 5e6cff4)
@costin
Copy link
Member

costin commented Apr 8, 2016

Closing the issue - if the issue persists, please open a new issue referring this one.

Thanks

@costin costin closed this as completed Apr 8, 2016
@qgong-aa
Copy link

qgong-aa commented Jun 6, 2016

@costin hi costin. I've met a relevant problem. During multiple indices search, by restful API, i can set
"ignore_unavailable" option to search only those exists indices. For example, to search "index-1,index-2,index-3,index-4", when "index-3" is missing, the result will contain data from "index-1,index-2,index4". However in es-hadoop, i can't find relevant options. If some of the index missed, the whole read will either fail or return empty by setting "Es.index.read.missing.as.empty".

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

3 participants