unstale

pypi / elasticsearch

elasticsearch

What changed in elasticsearch 8 to 9, from its official release notes, upgrade guides and advisories. Sources checked 2026-12-05.

56 breaking1 security14 deprecations184 new APIs and options3 behavior and defaults1 tooling10 fixes and other

See which of these apply to your code, ranked, in your agent:

npx @unstale/cli init

@unstale/cli 0.3.1 on npm

elasticsearch 9202 changes

Breaking changes 24

  • Removes the master_timeout parameter from the searchable_snapshots.cache_stats API.

    9.4.0release notes

  • Removes the chunking_settings argument from inference.put_anthropic.

    9.2.1release notes

  • Removes the chunking_settings argument from inference.put_contextualai.

    9.2.1release notes

  • Removes the chunking_settings argument from inference.put_deepseek.

    9.2.1release notes

  • Python 3.9 is no longer supported.

    9.2.0release notes

  • Removes the unsupported size parameter from reindex.

    8.19.2, 9.2.0release notesrelease notes

  • Removes the visit_percentage argument from the Knn query class.

    9.1.3release notes

  • Removes the index_options argument from the SemanticText field class.

    9.1.3release notes

  • The Async Search Submit API no longer accepts min_compatible_shard_node.

    9.0.0release notes

  • The cat alias API no longer accepts local.

    9.0.0release notes

  • Elasticsearch 9 must be upgraded before using elasticsearch-py 9.0.0 or later; using the client with an Elasticsearch 8 server will fail.

    9.0.0release notes

  • The Elasticsearch-DSL package is merged into the Elasticsearch Python package.

    9.0.0release notes

  • Deprecated Elasticsearch() options are removed.

    9.0.0release notes

  • The Simulate data ingestion API parameter is renamed from index_template_subtitutions to index_template_substitutions.

    9.0.0release notes

  • The Alias exists API no longer accepts local.

    9.0.0release notes

  • The Get alias API no longer accepts local.

    9.0.0release notes

  • The experimental Get field usage stats API no longer accepts wait_for_active_shards.

    9.0.0release notes

  • The Index segments API no longer accepts verbose.

    9.0.0release notes

  • The Get trained model configuration info API no longer accepts include_model_definition.

    9.0.0release notes

  • The Search API no longer accepts min_compatible_shard_node.

    9.0.0release notes

  • The Logout of OpenID Connect API parameter is renamed from access_token to token.

    9.0.0release notes

  • The Unfreeze an index API is removed.

    9.0.0release notes

  • The deprecated url_prefix option is removed.

    9.0.0release notes

  • The deprecated use_ssl option is removed.

    9.0.0release notes

Security 1

  • Index names are sanitized in the ES|QL query builder.

    9.4.1release notes

Deprecations 2

New APIs and options 162

Behavior and default changes 2

Tooling 1

Fixes and other changes 10

elasticsearch 867 changes

Breaking changes 32

  • Responses are objects with meta for response metadata and body for a typed body.

    8.0.0release notes

  • Introduces an API-layer exception distinct from transport-layer errors; transport errors now come from elastic-transport.

    8.0.0release notes

  • User-defined body parameters have semantic names, such as using document instead of body for index.

    8.0.0release notes

  • Removes the deprecated local parameter.

    8.0.0release notes

  • Removes the deprecated allow_no_datafeeds parameter.

    8.0.0release notes

  • Removes the deprecated allow_no_jobs parameter.

    8.0.0release notes

  • Removes the deprecated size parameter.

    8.0.0release notes

  • Defaults to compatibility mimetypes that request response compatibility with Elasticsearch 8.x.

    8.0.0release notes

  • Removes the deprecated size parameter.

    8.0.0release notes

  • Removes the parameter from many document and index APIs.

    8.0.0release notes

  • The client checks that a compatible version of the transport package is installed.

    8.0.0release notes

  • The client transport layer now uses the elastic-transport package.

    8.0.0release notes

  • Removes the default localhost URL; connections must specify scheme, host, and port or use cloud_id.

    8.0.0release notes

  • Removes the module; its functionality has moved to elastic-transport.

    8.0.0release notes

  • Removes the deprecated API.

    8.0.0release notes

  • Removes the deprecated API.

    8.0.0release notes

  • Removes the deprecated API.

    8.0.0release notes

  • Removes the deprecated API.

    8.0.0release notes

  • Removes the deprecated copy_settings parameter.

    8.0.0release notes

  • Removes the deprecated API.

    8.0.0release notes

  • Removes the deprecated allow_no_jobs parameter.

    8.0.0release notes

  • Removes the deprecated API.

    8.0.0release notes

  • Removes the deprecated allow_no_datafeeds parameter.

    8.0.0release notes

  • Removes the deprecated allow_no_datafeeds parameter.

    8.0.0release notes

  • Removes the deprecated allow_no_jobs parameter.

    8.0.0release notes

  • Removes the deprecated allow_no_jobs parameter.

    8.0.0release notes

  • Removes the deprecated allow_no_jobs parameter.

    8.0.0release notes

  • API methods no longer accept positional arguments; all API parameters must be keyword-only.

    8.0.0release notes

  • Python 2.7 is no longer supported; the library supports only Python 3.6+.

    8.0.0release notes

  • Python 3.5 is no longer supported; the library supports only Python 3.6+.

    8.0.0release notes

  • Removes the deprecated API.

    8.0.0release notes

  • Removes the deprecated size parameter.

    8.0.0release notes

Deprecations 12

  • Deprecates the body parameter on all APIs.

    8.0.0release notes

  • Deprecates the module; it will be removed in a future version.

    8.0.0release notes

  • Deprecates the verbose parameter.

    8.0.0release notes

  • Deprecates the accept_enterprise parameter.

    8.0.0release notes

  • Deprecates setting api_key as a transport option directly; use the .options() method instead.

    8.0.0release notes

  • Deprecates setting headers as a transport option directly; use the .options() method instead.

    8.0.0release notes

  • Deprecates setting http_auth as a transport option directly; use the .options() method instead.

    8.0.0release notes

  • Deprecates setting ignore as a transport option directly; use the .options() method instead.

    8.0.0release notes

  • Deprecates setting opaque_id as a transport option directly; use the .options() method instead.

    8.0.0release notes

  • Deprecates setting request_timeout as a transport option directly; use the .options() method instead.

    8.0.0release notes

  • Deprecates the params parameter on all APIs.

    8.0.0release notes

  • Deprecates the accept_enterprise parameter.

    8.0.0release notes

New APIs and options 22

  • Adds the API for deleting data stream options.

    8.19.3release notes

  • Adds the API for retrieving data stream options.

    8.19.3release notes

  • Adds the API for setting data stream options.

    8.19.3release notes

  • Adds the indices.get_data_stream_settings API.

    8.19.2release notes

  • Adds the indices.put_data_stream_settings API.

    8.19.2release notes

  • API methods now have parameters corresponding to JSON request body fields.

    8.0.0release notes

  • Adds access to HTTP response metadata on an API error.

    8.0.0release notes

  • Adds a parameter for specifying username and password authentication.

    8.0.0release notes

  • Adds a parameter for specifying an HTTP bearer token or service token.

    8.0.0release notes

  • Adds the time parameter.

    8.0.0release notes

  • Adds a top-level method for modifying transport options.

    8.0.0release notes

  • Renames JSONSerializer to JsonSerializer; the old name remains available as a backwards-compatible alias.

    8.0.0release notes

  • Adds the experimental knn_search API.

    8.0.0release notes

  • Adds the timeout parameter.

    8.0.0release notes

  • Adds an experimental API for inferring a trained model deployment.

    8.0.0release notes

  • Adds an experimental API for putting a trained model definition part.

    8.0.0release notes

  • Adds an experimental API for putting trained model vocabulary.

    8.0.0release notes

  • Adds an experimental API for starting a trained model deployment.

    8.0.0release notes

  • Adds an experimental API for stopping a trained model deployment.

    8.0.0release notes

  • Adds the security.enroll_kibana API.

    8.0.0release notes

  • Adds the security.enroll_node API.

    8.0.0release notes

  • The API now accepts multiple snapshots.

    8.0.0release notes

Behavior and default changes 1

  • AsyncElasticsearch is always available, whether or not aiohttp is installed.

    8.0.0release notes