Skip to content

NotFoundError: TransportError when executing search_exists #272

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

Closed
jstypka opened this issue Sep 23, 2015 · 2 comments
Closed

NotFoundError: TransportError when executing search_exists #272

jstypka opened this issue Sep 23, 2015 · 2 comments

Comments

@jstypka
Copy link

jstypka commented Sep 23, 2015

In the new 1.7.0 version when I run:

from elasticsearch import Elasticsearch
es = Elasticsearch()
es.search_exists(index='non-existing-index', doc_type='not-existent', body={})
...
NotFoundError: TransportError(404, u'IndexMissingException[[non-existing-index] missing]')

What's more I even get an error when the index exists:

NotFoundError: TransportError(404, u'{"exists":false}')

In the 1.6.0 version I just get False and nothing blows up which is a much nicer behaviour.
Is it a bug or a feature?

@Redoubts
Copy link

This surprised me too. I got further confused when I saw #230 marked as closed fixed.

@honzakral
Copy link
Contributor

Sorry for the delay, fix was pushed, release comnig soon

rciorba added a commit to rciorba/elasticsearch-py that referenced this issue Mar 2, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants