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

Add ignore_indices option #2209

Closed
martijnvg opened this issue Aug 27, 2012 · 4 comments
Closed

Add ignore_indices option #2209

martijnvg opened this issue Aug 27, 2012 · 4 comments

Comments

@martijnvg
Copy link
Member

The ignore_indices determines what type of indices to exclude from a request. The option can have the following values:

  • none: No indices / aliases will be excluded from a request.
  • missing: Indices / aliases that are missing will be excluded from a request.

The ignore_indices option applies on the following APIs:

  • count
  • search
  • multi search
  • clear cache
  • flush
  • gateway snapshot
  • optimize
  • refresh
  • segments
  • stats
  • status
  • validate query

This issue is related to #2167

martijnvg added a commit to martijnvg/elasticsearch that referenced this issue Aug 27, 2012
@kimchy
Copy link
Member

kimchy commented Aug 27, 2012

Pushed.

@mahdeto
Copy link
Contributor

mahdeto commented Feb 10, 2013

worth adding a "missing_some" option, which can ignore some indices in an index list but fails if none of them exists (specially helpful in case of daily logs where some days have no logs).

@synhershko
Copy link
Contributor

This is exactly what "missing" does, it will fail if none exist

@mahdeto
Copy link
Contributor

mahdeto commented Feb 10, 2013

not really. on 20.4 it returns results equivalent of querying with no indices (all indices)

you can reproduce as within the following gist:
https://gist.github.com/mahdeto/4749348

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

4 participants