Skip to content
Back to skills

Elasticsearch Knowledge Patch

ASecurity

Elasticsearch

  • 25 stars
  • 0 votes
  • 0 copies
  • 9 views
  • Added September 5, 2026
ai-agentsjavasqlnodeexpressawsapisecurity

Works with

  • cli
  • api

Security analysis

A100/100

Pro scans all 10 files and shows the line behind each finding

Scanned December 1, 2026

npx -y skills add Nevaberry/nevaberry-plugins --skill elasticsearch-knowledge-patch --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Elasticsearch Knowledge Patch?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Elasticsearch Knowledge Patch
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/nevaberry-elasticsearch-knowledge-patch-nevaberry-plugins/badge)](https://www.skillsdirectory.com/skills/nevaberry-elasticsearch-knowledge-patch-nevaberry-plugins)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
name: elasticsearch-knowledge-patch
description: Elasticsearch
version: "9.5.7"
license: MIT
metadata:
  author: Nevaberry
---



# Elasticsearch Knowledge Patch

Load this skill when updating Elasticsearch queries, mappings, ingest pipelines,
inference endpoints, lifecycle policies, repositories, or cluster configuration.
Use the quick references below for common compatibility decisions and the topic
files for detailed behavior, examples, limitations, and version-specific fixes.

## Reference index

| Reference | Topics |
| --- | --- |
| [Breaking changes](references/breaking-changes.md) | Query defaults, time-series writes, mappings, ILM, SDK migration, security, removed settings |
| [Data, mappings, and ingest](references/data-mappings-and-ingest.md) | Failure stores, log streams, columnar modes, time-series storage, synthetic source, processors, OTLP |
| [Deprecations and known issues](references/deprecations-and-known-issues.md) | Deprecated APIs and settings, incorrect results, upgrade failures, repository and vector workarounds |
| [ES\|QL](references/esql.md) | Joins, views, full text, branches, parameters, analytics, PromQL, vectors, external sources, response formats |
| [Inference](references/inference.md) | Endpoint lifecycle, licensing, chunking, multimodal inputs, providers, model validation |
| [Lifecycle, snapshots, and storage](references/lifecycle-snapshots-and-storage.md) | ILM, downsampling, frozen tier, reindexing, restore, archives, repository settings |
| [Search and vectors](references/search-and-vectors.md) | Semantic fields, vector indexes, kNN, GPU indexing, retrievers, synonyms, pagination, cross-cluster search |
| [Security, cluster, and operations](references/security-cluster-and-operations.md) | Credentials, roles, logging, allocation, plugins, runtimes, Prometheus APIs, connectors, transforms |

## Breaking changes to check first

### Partial results and cross-cluster requests

ES|QL returns partial results by default in 8.19.0 and 9.1.0. Check `is_partial`
before treating a response as complete. Require complete results with
`?allow_partial_results=false` or cluster setting
`esql.query.allow_partial_results: false`.
In 9.4.10 and 9.5.7, cancellation fails the query even with partial results enabled.

EQL defaults `allow_partial_search_results` to `true` in 9.0.0; set it to `false`
to fail on partial searches. With ES|QL `skip_unavailable=true`, a missing remote
index is nonfatal in 9.1.0; inspect cluster metadata for `skipped` or `partial`.

In 9.5.0, remote cluster exclusions apply only to earlier targets:
`GET /remote*:logs-*,-remote1:*,remote1:logs-keep/_search` excludes `remote1`
from the wildcard and then explicitly includes `remote1:logs-keep`.

### Time-series writes and ILM defaults

Set `index.disable_sequence_numbers: false` in a time-series index template if
writes require optimistic concurrency control. With sequence numbers disabled,
index, update, and delete requests using `if_seq_no` fail; searches with
`seq_no_primary_term=true` return sentinel sequence numbers.

In 9.5.0, `index.look_ahead_time` defaults to `9m` instead of `30m`. Time-series
data streams reject documents more than nine minutes in the future under that
default. For future-dated producers, set `index.look_ahead_time: 30m` or another
suitable value in the composable or component template.

In 9.4.0, ILM `downsample` stops force-merging by default. Set
`"force_merge_index": true` or add a separate force-merge action in the same or
a later phase. In 9.4.5 and 9.5.1, an `allocate` action specifying
`number_of_replicas` removes `index.auto_expand_replicas`; omit
`number_of_replicas` to retain automatic replica expansion.

### Mapping, inference, and request changes

Starting in 9.2.0, new indices enable `exclude_source_vectors` by default, so
stored `_source` omits vector values. Reindex carries vector values even when
stored `_source` omits them. Text norms are disabled by default in LogsDB and
time-series indices in 9.2.0.

In 9.3.8 and 9.4.4, the Inference API rejects overrides of `secret_parameters`.
In 9.4.0, chat completions with reasoning no longer accept `max_tokens`, base64
embedding inputs must use data URIs, and inference timeouts return HTTP 504.

### Cloud repositories and node configuration

Test production S3 repository settings before the SDK v1-to-v2 upgrade.
During the 9.1.0 SDK upgrade, `discovery-ec2` and `repository-s3` require IMDSv2
when using instance metadata and stop honoring
`com.amazonaws.sdk.ec2MetadataServiceEndpointOverride`.

Specify the scheme in `discovery.ec2.endpoint` instead of using
`discovery.ec2.protocol`. Configure both discovery access and secret keys in
the keystore or omit both after removing use of the `aws.secretKey` property.
Specify the scheme in `s3.client.<name>.endpoint`, and set
`s3.client.<name>.region` on each node if the signing region cannot be inferred.

In 9.0.0, remove `tracing.apm.*`, `ecs` from `user_agent` processors, `fallback`
from GeoIP processors, and `force_source` from highlight requests.
The launcher ignores `_JAVA_OPTIONS`; use `jvm.options.d/` or `ES_JAVA_OPTS`.
An LDAP or Active Directory bind DN without a bind password prevents startup.

See [breaking changes](references/breaking-changes.md) for the remaining
settings, analyzer, TLS, privilege, and response changes.

## Deprecations

- Legacy monitoring REST APIs are deprecated in 9.5.3. Built-in Monitoring
  plugin collection and shipping are deprecated in 9.5.0; move both off the
  plugin before 10.0, when that functionality is removed.
- Logger updates that implicitly configure child loggers are deprecated in
  9.5.0. Configure affected children explicitly before 10.0.
- The `logs` stream type and `default_metric` mapping parameter are deprecated
  in 9.4.0. ILM `rollover` using `max_size` warns starting in 9.3.0.
- ES|QL removes bracketed metadata lists in 9.0.0. Use comma-separated fields:
  `FROM my-index METADATA _id, _index`.
- The Inference API deprecates the `elser` service identifier in 9.0.0.
  Check endpoint definitions selecting that service.

See [deprecations and known issues](references/deprecations-and-known-issues.md)
for the other deprecated APIs, roles, and settings.

## Known issues affecting upgrades and correctness

In 9.5.0–9.5.2, a primary node crossing its indexing-pressure limit during a
bulk request can apply some items without replicating them. Unacknowledged
writes can appear intermittently in searches, and translog trimming can be
prevented. Upgrade to 9.5.3 or later.
Versions 9.4.8 and 9.5.5 also fix replica divergence on indices with
`index.disable_sequence_numbers: true`.

In 9.5.0, Boolean queries combining `must_not` with `must`, `filter`, or `should`
can return false positives on `index: false` fields when using bulk scoring.
The `term` and `range` paths are fixed in 9.5.1; multi-value `terms` in 9.5.2.

Creating `bbq_disk` indices requires an Enterprise license from 9.3.0.
Indices created on 9.2 without that license remain updatable and queryable.
Version-specific startup, GCS, Active Directory, shrink, direct-I/O, and Watcher
workarounds are in [known issues](references/deprecations-and-known-issues.md).

## ES|QL quick reference

In 9.2.0, `LOOKUP JOIN` accepts multiple keys and cross-cluster input;
comparison expressions in `ON` are in technical preview. Remote `ENRICH` can
follow a lookup join in 9.2.0, whereas 9.1.0 rejects that order.
In 9.4.0, place `SORT` after the join to order the joined output.

Use `KEEP ??field` for an identifier parameter and `LIMIT ?limit` for a value
parameter. Quote index patterns containing parentheses, such as
`FROM "logs-(prod)"`. For remote patterns, quote the entire expression or leave
it entirely unquoted: `FROM "remote:logs-*"` or `FROM remote:logs-*`.

Use explicit `LIMIT` inside `FORK` or subquery branches to cap their output;
branches no longer receive individual implicit row limits in 9.4.0.
In 9.5.7, `TS` pipelines reject `FORK` before the first `STATS`.
In 9.4.10 and 9.5.7, specify timestamp grouping explicitly when needed because
the implicit `@timestamp` is left out of `STATS` grouping keys.

Views expose saved pipelines as virtual indices in 9.4.0. A `FROM` clause can
mix views, indices, and wildcards. Querying views is unavailable with document-
level or field-level security. The views REST API reaches serverless in 9.5.0.

The technical-preview `unmapped_fields="load"` mode loads unmapped values from
`_source`, including synthetic source. In 9.5.0, it works with views, subqueries,
and `FORK`; full-text functions can use the loaded fields.

Dense-vector functions, including `TEXT_EMBEDDING`, and `RERANK` are generally
available in 9.4.0. `PROMQL` is a technical-preview source command in 9.4.0.
In 9.5.0, `DEDUP` keeps one row per distinct key, as in
`FROM events | DEDUP event.id`, and `FUSE` is generally available.

See [ES|QL](references/esql.md) for functions, time-series windows, external
sources, inference, metadata, request formats, and query restrictions.

## Data streams and ingest

Failure stores retain documents rejected by ingest pipelines or mapping
conflicts. Enable them through an index template or the data stream options
endpoint, and query them with `::failures`. Newly created `logs-*-*`,
OpenTelemetry, and APM data streams enable failure stores by default in 9.2.0.
When an invalid document is written to the failure store, the indexing response
is HTTP `201 Created` with `"failure_store": "used"`.

In 9.3.5 and 9.4.1, indexing backpressure exceptions bypass the failure store;
producers must handle the write rejection directly. Use
`recover_failure_document` to recover an original document for remediation.

In 9.5.0 technical preview, `columnar` and `logsdb_columnar` flatten object
mappings, reconstruct source from doc values by default, and preserve array
order. Use `doc_values.multi_value: false` to reject multiple values or
`doc_values.nullability: false` to reject missing fields and explicit nulls.

See [data, mappings, and ingest](references/data-mappings-and-ingest.md) for
backfills, histogram mappings, source behavior, field limits, and processors.

## Semantic search, vectors, and inference

`semantic_text` is generally available and integrates inference into mapping.
It accepts `match` queries and semantic highlighting; use `sparse_vector` or
`knn` with sparse or dense embeddings, respectively. Mapping updates omitting
`inference_id` preserve the current endpoint in 9.4.10 and 9.5.7.

New dense vector indexes default to `bbq_disk` in 9.4.0; new dense
`semantic_text` fields inherit that default and use `bfloat16`. DiskBBQ supports
configurable 1-, 2-, 4-, and 7-bit quantization. Tune search breadth with
`num_candidates` or `visit_percentage`.

Use `"rescore_vector": {"oversample": 2.0}` to collect extra quantized kNN
candidates and rescore with original vectors. Set `"oversample": 0` inside
`rescore_vector` to bypass oversampling and rescoring in 9.1.0.
The experimental `rank_vectors` field stores multiple dense vectors per
document for second-stage late-interaction reranking.

Use `PUT /_inference/<task_type>/<inference_id>/_update` for endpoint updates.
Create an inference endpoint before adding a mapping referencing its ID;
endpoint creation rejects already-referenced IDs in 9.1.7 and 9.2.1.
Use `"chunking_settings": {"strategy": "none"}` to keep each input intact.
Embedding requests containing `query` are rejected in 9.2.0; use `input`.

See [search and vectors](references/search-and-vectors.md) and
[inference](references/inference.md) for retrievers, GPU constraints,
multimodal inputs, endpoint controls, licensing, and model validation.

## Lifecycle and operational controls

Set `index.lifecycle.skip: true` to skip an index while retaining its ILM policy.
In 9.5.0, `{"frozen_after":"30d"}` moves eligible backing indices to partially
mounted snapshots in the default repository. This requires Enterprise on a
non-serverless deployment; failure-store lifecycle rejects `frozen_after`.

Asynchronous reindexing survives graceful node shutdown in 9.5.0. In 9.5.3,
a task fails if its shutting-down node cannot relocate it; check the outcome.
Use `GET /_resolve/cluster?timeout=5s` to check connectivity without an index
expression. Use remote write 1.0 with `POST /_prometheus/api/v1/write`;
9.4.8 and 9.5.5 reject remote write 2.0.

See [lifecycle and storage](references/lifecycle-snapshots-and-storage.md) and
[operations](references/security-cluster-and-operations.md) for repository
settings, restore requirements, authentication, diagnostics, and transforms.

Files in this skill

  • SKILL.md10.2 KB
  • coverage.json1.3 KB
  • references/breaking-changes.md4.9 KB
  • references/data-mappings-and-ingest.md5.2 KB
  • references/deprecations-and-known-issues.md7.3 KB
  • references/esql.md8.6 KB
  • references/inference.md4.1 KB
  • references/lifecycle-snapshots-and-storage.md3.3 KB
  • references/search-and-vectors.md5.6 KB
  • references/security-cluster-and-operations.md4 KB

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

View all in ai-agents →

Comments

Loading comments…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.