Skip to content

Add support for validating queries #1237

@a-hacker

Description

@a-hacker

Elasticsearch provides a way to validate a query before it is executed. It would be nice to be able to validate a search object before executing it:

s = Search(...)
if s.validate()['valid']:
    return s.execute()
else:
    ...

Luckily, elasticsearch-py already supports this.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions