Releases: elastic/elasticsearch-py
Releases · elastic/elasticsearch-py
8.18.1
- Update APIs
- Add back
inference.inferenceAPIs that were removed by mistake
- Add back
- Update DSL
- Add
CountedKeywordandPassthroughfields - Add
rescore_vectorto Knn query - Add
bbq_flatandbbq_hnswvector index types - Add
scriptandon_script_errortoDateandDateNanosfields
- Add
9.0.1
9.0.0
Important
Upgrade to Elasticsearch 9 before using elasticsearch-py 9.0.0 or later. Using elasticsearch-py 9.0.0 on an Elasticsearch 8 server will fail.
Since language clients are forward-compatible, you should first upgrade Elasticsearch, then the Elasticsearch client. See the compatibility documentation for more details.
- Remove deprecated
Elasticsearch()options (#2840) - Remove deprecated
url_prefixanduse_ssloptions (#2797) - Merge Elasticsearch-DSL package (#2736)
- Add Python DSL documentation (#2761)
- Autogenerate DSL field classes from schema (#2780)
- Improve DSL documentation examples with class-based queries and type hints (#2857)
- Document the use of
param()in Python DSL methods (#2861) - Migrate documentation from AsciiDoc to Markdown format (#2806)
- Document use of sub-clients (#2798)
- Document how to making API calls (#2843)
- Fix
simulatesub-client documentation (#2749) - Update APIs
- Remove Unfreeze an index API
- Remove min_compatible_shard_node from Search and Async Search Submit APIs
- Remove local parameter from cat alias, Alias exists, and Get alias APIs
- Remove
verbosefrom Index segments API - Remove
include_model_definitionfrom Get trained model configuration info API - Remove
wait_for_active_shardsfrom experimental Get field usage stats API - Support soft-deletes in connectors:
- Add
hardto Delete connector API - Add
include_deletedto Get and List Connector APIs
- Add
- Add
master_timeoutto Migrate to data tiers routing APIs - Add
master_timeoutto the Alias exists and Get alias APIs. - Add
expand_wildcardsto Create snapshot API - Rename incorrect
access_tokentotokenin Logout of OpenID Connect API - Add inference APIs: Alibaba Cloud AI Search, Amazon Bedrock, Anthropic, Azure AI Studio, Azure OpenAI, Cohere, Elasticsearch, ELSER, Google AI Studio, Google Vertex AI, Hugging Face, Jina AI, Mistral, OpenAI, and Voyage AI
- Add Reindex legacy backing indices APIs
- Add Create an index from a source index API
- Add
include_source_on_errorto Create, Index, Update and Bulk APIs - Add Stop async ES|QL query API
- Add
timeoutto Resolve Cluster API - Add
adaptive_allocationsbody field to Start and Update a trained model deployment API - Rename
index_template_subtitutionstoindex_template_substitutionsin Simulate data ingestion API* Addif_primary_term,if_seq_no,op_type,require_aliasandrequire_data_streamto Create API - Add
max_concurrent_shard_requeststo Open point in time API - Add
localandflat_settingsto Check index templates API - Add
reopento Update index settings API - Add
resourceto Reload search analyzer API - Add
lazyto Roll over to a new index API - Add
causeandcreateto Simulate index template APIs - Add Elastic Inference Service (EIS) chat completion
- Add inference APIs: Alibaba Cloud AI Search, Amazon Bedrock, Anthropic, Azure AI Studio, Azure OpenAI, Cohere, Elastic Inference Service (EIS), Elasticsearch, ELSER, Google AI Studio, Google Vertex AI, Hugging Face, Jina AI, Mistral, OpenAI, and Voyage AI
- Update DSL
- Add
ignore_malformed,script,on_script_errorandtime_series_dimensionto Boolean field - Add
indexto GeoShape field - Add
search_inference_idto SemanticText field
- Add
8.18.0
- Merge
Elasticsearch-DSL <https://github.com/elastic/elasticsearch-dsl-py/>_ package (#2736) - Add Python DSL documentation (#2761)
- Autogenerate DSL field classes from schema (#2780)
- Improve DSL documentation examples with class-based queries and type hints (#2857)
- Document the use of
param()in Python DSL methods (#2861) - Document use of sub-clients (#2798)
- Fix
simulatesub-client documentation (#2749) - Update APIs
- Remove
wait_for_active_shardsfrom experimental Get field usage stats API - Rename incorrect
access_tokentotokenin Logout of OpenID Connect API - Add inference APIs: Alibaba Cloud AI Search, Amazon Bedrock, Anthropic, Azure AI Studio, Azure OpenAI, Cohere, Elasticsearch, ELSER, Google AI Studio, Google Vertex AI, Hugging Face, Jina AI, Mistral, OpenAI, and Voyage AI
- Add Reindex legacy backing indices APIs
- Add Create an index from a source index API
- Add
include_source_on_errorto Create, Index, Update and Bulk APIs - Add Stop async ES|QL query API
- Add
timeoutto Resolve Cluster API - Add
adaptive_allocationsbody field to Start and Update a trained model deployment API - Rename
index_template_subtitutionstoindex_template_substitutionsin Simulate data ingestion API* Addif_primary_term,if_seq_no,op_type,require_aliasandrequire_data_streamto Create API - Add
max_concurrent_shard_requeststo Open point in time API - Add
localandflat_settingsto Check index templates API - Add
reopento Update index settings API - Add
resourceto Reload search analyzer API - Add
lazyto Roll over to a new index API - Add
causeandcreateto Simulate index template APIs - Add Elastic Inference Service (EIS) chat completion
- Add inference APIs: Alibaba Cloud AI Search, Amazon Bedrock, Anthropic, Azure AI Studio, Azure OpenAI, Cohere, Elastic Inference Service (EIS), Elasticsearch, ELSER, Google AI Studio, Google Vertex AI, Hugging Face, Jina AI, Mistral, OpenAI, and Voyage AI
- Remove
- Update DSL
- Add
ignore_malformed,script,on_script_errorandtime_series_dimensionto Boolean field - Add
indexto GeoShape field - Add
search_inference_idto SemanticText field
- Add
8.17.2
8.17.1
8.17.1 (2025-01-23)
- Make pyarrow dependency optional for tests (#2733, contributed by @danigm)
- Update APIs:
- Add Simulate ingest API
- Add Get data stream lifecycle stats API
- Add Update inference API
- Add Create or update, Get and Delete IP geolocation database configuration APIs
- Add Bulk update API keys
- Add Get and Update Security index settings APIs
- Add OpenID Connect prepare authentication, OpenID Connect authenticate and OpenID Connect logout APIs
- Add Delegate PKI authentication API
- Add Repository analysis API
- Add Render Search Application Query API
- Add Find field structure and Find messages structure APIs
- Add Get Watcher index settings and Update Watcher index settings APIs
- Add experimental Check in and Claim connector sync job APIs
- Add experimental Set connector sync job errors and Set connector sync job stats APIs
- Add experimental Update connector features APIs
- Add experimental Post Event to an Analytics Collection API
- Add
timeoutandmaster_timeoutto Snapshot lifecycle management (SLM) APIs - Add
allow_partial_search_resultsto SQL search API - Add
throttle_period_in_millisto Create or update watch API - Fix query parameters for CAT APIs
8.17.0
8.17.0 (2024-12-13)
- Allow simsimd again on Python 3.13 (#2722)
- Update APIs:
- Mark all Inference APIs as stable.
- Add
allow_partial_search_resultsto the Open Point in Time API - Add
keep_aliveto the Get async search status API - Remove the
keep_alive,pre_filter_shard_sizeandscrollparameters from the Submit async search API. They were never supported. - Add
master_timeoutandtimeoutto all autoscaling policy APIs - Add
master_timeoutto the Alias exists and Get alias APIs - Add
list_executed_pipelinesandrequire_data_streamto Bulk API - Add
include_model_definitionto Get trained models API - Add
metato Create data frame analytics API - Add
aggsto Create datafeeds API - Add
allow_no_indices,expand_wildcards,ignore_throttledandignore_unavailableto Create anomaly detection jobs API
8.16.0
8.16.0 (2024-11-12)
- Support Python 3.13 (#2680)
- Emit Python warnings for beta and tech preview APIs (#2675). You can disable those warnings if needed:
import warnings from elasticsearch.exceptions import GeneralAvailabilityWarning warnings.filterwarnings("ignore", category=GeneralAvailabilityWarning)
- Vectorstore: use a retriever query for hybrid search (#2666)
- Allow retries for statuses other than 429 in streaming bulk (#2071, contributed by @ayayron)
- Make
BulkIndexErrorandScanErrorserializable (#2669, contributed by @seagrine) - Fix import when
traceis missing fromopentelemetrypackage (#2694, contributed by @nicoloboschi) - Update APIs:
- Fix
nodesparameter in Task management API (contributed by @margaretpearce) - Add Test query rule API
- Add Create Cross-Cluster API key and Update Cross-Cluster API key APIs
- Add experimental Verify snapshot repository API
- Add
data_stream_nameandsettingsto Delete auto-follow pattern API - Add
max_samples_per_keyto Get async EQL status API - Add
lifecycleand remove unuseddata_retentionanddownsampling parametersfrom Put data stream lifecycle API - Add
include_remotesand removeflat_settingsfrom Cluster stats API - Add
remote_indicesto Create or update application privileges and Create or update roles APIs
- Fix