Skip to content

The behavior of ResultSet makes confusing  #493

@lafengnan

Description

@lafengnan

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!!!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions