pypi / elasticsearch
elasticsearch
What changed in elasticsearch 9, from its official release notes, upgrade guides and advisories. Sources checked 2026-10-21.
1 security1 deprecations21 new APIs and options1 behavior and defaults6 fixes and other
See which of these apply to your code, ranked, in your agent:
npx @unstale/cli initelasticsearch 930 changes
Security 1
Index names are sanitized in the ES|QL query builder.
Deprecations 1
Deprecates
confidence_intervalbecause Lucene 10.4 computes it automatically.
New APIs and options 21
Adds an API to delete a data source.
Adds an API to get a data source.
Adds an API to put a data source.
doc_values now accepts a DocValuesConfig object on all field types.
Adds the DocValuesConfig type for configuring doc_values on all field types.
Adds the encryption.reset API.
Adds the preserve_leaf_arrays attribute to the Flattened field.
Adds the route_slice parameter to the indices.validate_query API.
Adds the routing parameter to the indices.validate_query API.
Adds the inference.delete_region_policy API.
Adds the inference.get_region_policy API.
Adds the inference.put_region_policy API.
Adds the stats parameter to the search API.
Adds the search_after parameter to the synonyms.get_synonym API.
Adds the append parameter to the synonyms.put_synonym API.
Adds the project_routing parameter to the terms_enum API.
Adds the basic parameter to the transform.get_transform_stats API.
The QueryVectorBuilder type gains an embedding attribute.
The InnerHits type gains a field attribute.
The DenseVectorIndexOptions type gains a flat_index_threshold attribute.
Retries can use an optional backoff delay strategy.
Behavior and default changes 1
Changes the
inference_iddefault to.jina-embeddings-v5-text-smallwhen the Elastic Inference Service is available.
Fixes and other changes 6
Includes the missing
auto_calibrateproperty.Includes the missing
bitsproperty.Includes the missing
cluster_sizeproperty.Includes the missing
default_visit_percentageproperty.Includes the missing
preconditionproperty.Forwards opaque_id in async_scan.