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

The behavior of ResultSet makes confusing #493

Open
lafengnan opened this issue Jun 29, 2015 · 0 comments
Open

The behavior of ResultSet makes confusing #493

lafengnan opened this issue Jun 29, 2015 · 0 comments

Comments

@lafengnan
Copy link

The object of pyes.es.ResultSet makes me confusing. When I use pyes.es.Es.search() to retrieve data from Elasticsearch, it returns an object x of pyes.es.ResultSet which has len(), total, count()... methods defined. But if the index is non-existing, len(x) or x.total, or x.count() will raise IndexMissingException, it makes me confusing. Since I wondering a 0 is returned if no data retrieved, but in practice I got an exception!!!

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

1 participant