elasticsearch-py
elasticsearch-py copied to clipboard
Official Python client for Elasticsearch
Closes https://github.com/elastic/elasticsearch-py/issues/1004. This updates https://github.com/elastic/elasticsearch-py/pull/1005 to work for both the async and sync client as well as adding tests.
I would like a helper function to replace `scan`, one that uses the `search_after` parameter with a point in time (PIT) instead of the scroll API. I use `scan` frequently,...
ConnectionResetError: [WinError 10054] An existing connection was forcibly closed by the remote host
I'm using elastic 7.16.3, from python when I do a bulk upload like ``` try: es.bulk(rec_to_actions(df, elastic_index)) except Exception as e: raise ElasticUpdateError("Transport Error: Can't Push data Artifacts to elastic...
`bytes` option is well handled: https://github.com/elastic/elasticsearch-py/blob/8896e5ba2372dcc771beaadee46956fa8ec3386f/elasticsearch/_sync/client/cat.py#L1888-L1889 But not `time` option. This option is documented [here](https://www.elastic.co/guide/en/elasticsearch/reference/current/cat-indices.html#cat-indices-api-request) for example. I have got the error with elasticsearch-7.17.6 but the same issue exists on...
**Elasticsearch version**: 7.17.1 **`elasticsearch-py` version**: 7.17.1 Please make sure the major version matches the Elasticsearch server you are running. **Description of the problem including expected versus actual behavior**: I routinely...
Please add support to pass in parent_task_id to get tasks, ideally with detailed=true. So that when using slices, we can get all the subtasks. https://elasticsearch-py.readthedocs.io/en/v8.4.0/api.html#elasticsearch.client.TasksClient.get
That way, the deserialization will be part of the span. Depends on https://github.com/elastic/elastic-transport-python/pull/157
New batch of examples, as per https://github.com/elastic/elasticsearch-py/issues/2429 ❌ Found an issue with function `update-trained-model-deployment` not appearing in the spec / not running - waiting for feedback on this before going...
I'm adding inference doc code examples per https://github.com/elastic/elasticsearch-py/issues/2429
There are currently three ways to instrument an application that uses the Elasticsearch Python client: * Using the Elastic [APM Python agent](https://www.elastic.co/guide/en/apm/agent/python/current/supported-technologies.html#automatic-instrumentation-db-elasticsearch) * Using the [OpenTelemetry contrib elasticsearch-py instrumentation](https://github.com/open-telemetry/opentelemetry-python-contrib/tree/main/instrumentation/opentelemetry-instrumentation-elasticsearch) *...