unstale

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 init

@unstale/cli 0.2.2 on npm

elasticsearch 930 changes

Security 1

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

    9.4.1release notes

Deprecations 1

  • Deprecates confidence_interval because Lucene 10.4 computes it automatically.

    9.5.1release notes

New APIs and options 21

  • Adds an API to delete a data source.

    9.5.1release notes

  • Adds an API to get a data source.

    9.5.1release notes

  • Adds an API to put a data source.

    9.5.1release notes

  • doc_values now accepts a DocValuesConfig object on all field types.

    9.5.0release notes

  • Adds the DocValuesConfig type for configuring doc_values on all field types.

    9.5.0release notes

  • Adds the encryption.reset API.

    9.5.0release notes

  • Adds the preserve_leaf_arrays attribute to the Flattened field.

    9.5.0release notes

  • Adds the route_slice parameter to the indices.validate_query API.

    9.5.0release notes

  • Adds the routing parameter to the indices.validate_query API.

    9.5.0release notes

  • Adds the inference.delete_region_policy API.

    9.5.0release notes

  • Adds the inference.get_region_policy API.

    9.5.0release notes

  • Adds the inference.put_region_policy API.

    9.5.0release notes

  • Adds the stats parameter to the search API.

    9.5.0release notes

  • Adds the search_after parameter to the synonyms.get_synonym API.

    9.5.0release notes

  • Adds the append parameter to the synonyms.put_synonym API.

    9.5.0release notes

  • Adds the project_routing parameter to the terms_enum API.

    9.5.0release notes

  • Adds the basic parameter to the transform.get_transform_stats API.

    9.5.0release notes

  • The QueryVectorBuilder type gains an embedding attribute.

    9.4.1release notes

  • The InnerHits type gains a field attribute.

    9.4.1release notes

  • The DenseVectorIndexOptions type gains a flat_index_threshold attribute.

    9.4.1release notes

  • Retries can use an optional backoff delay strategy.

    9.4.1release notes

Behavior and default changes 1

  • Changes the inference_id default to .jina-embeddings-v5-text-small when the Elastic Inference Service is available.

    9.5.1release notes

Fixes and other changes 6