elasticsearch-py icon indicating copy to clipboard operation
elasticsearch-py copied to clipboard

Official Python client for Elasticsearch

Results 122 elasticsearch-py issues
Sort by recently updated
recently updated
newest added

Is it possible to use the Elastic Search Python client with the `trio` event loop? If not, are there any plans to add `trio` support, potentially through utilising `anyio`?

Category: Feature
Area: Transport

The docs say `The source fields that are returned for matching documents.`. How am I supposed to define the source fields with a type of `bool | Mapping[str, Any] |...

Category: Question

We have a date field on ES8 with the following mapping ``` "date": {"type": "date"}, ``` But we are getting a validation format ``` failed to parse date field [2025-03-26T20:25:00-22:00]...

This PR adds support for passing a custom authentication class to the `httpx` client (#2933) *with minimal changes*. It is heavily inspired by the existing implementation for the `requests` client....

When instantiating `Elasticsearch` or `AsyncElasticsearch`, it is possible to pass a parameter named `http_auth`. If `node_class` is `requests` and `http_auth` is a subclass of `requests.auth.AuthBase`, `http_auth` is passed to `client_node_configs`...

## Summary: As far as I can tell, the client is missing the feature `run_as` for updating an apikey. Would like this an option, maybe as a list (`run_as: list[str]`)...

While the Python GC can handle those dependencies, it can cause latency spikes when .option() is used for each query, which causes many clients to be garbage collected, which can...

I'll create a single issue to collect many small typos in the Python documentation: * [`client.indeces`](https://elasticsearch-py.readthedocs.io/en/v8.17.1/api/indices.html) few instances of `~typing.Literal...` . Is that expected? * On the [`delete_by_query`](https://elasticsearch-py.readthedocs.io/en/v8.17.1/api/elasticsearch.html#elasticsearch.client.Elasticsearch.delete_by_query) page *...

Area: Documentation

While many client methods offer an higher level API to interact with the request, but there's always the last resort `body` for the uncovered cases. Now all definitions for the...

In the quick start documentation page here: https://elasticsearch-py.readthedocs.io/en/v8.17.1/quickstart.html there's only the Cloud example, which is fine. I think provide an example about non-cloud instances with one line may be helpful,...

Area: Documentation