Skip to content
Back to skills

Opensearch Knowledge Patch

ASecurity

OpenSearch

  • 25 stars
  • 0 votes
  • 0 copies
  • 2 views
  • Added September 5, 2026
ai-agentsjavasqlnodeexpressrailsapibackendsecurity

Works with

  • cli
  • api
  • mcp

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 opensearch-knowledge-patch --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Opensearch Knowledge Patch?

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

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

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: opensearch-knowledge-patch
description: OpenSearch
version: "3.10.1"
license: MIT
metadata:
  author: Nevaberry
---


# OpenSearch Knowledge Patch

Use this skill when upgrading, configuring, extending, or troubleshooting
OpenSearch, or working with its search, ML, security, query-language, and
Dashboards APIs. Load the relevant reference for detailed settings, examples,
experimental status, and compatibility behavior.

## Reference index

| Reference | Topics |
| --- | --- |
| [Upgrades and platform](references/upgrades-and-platform.md) | Runtime and packaging changes, removals, Java clients, gRPC, HTTP, streaming, plugin contracts |
| [Cluster operations and lifecycle](references/cluster-operations-and-lifecycle.md) | Ingestion, mappings, analyzers, data formats, snapshots, replication, ISM, workload groups, cluster APIs |
| [Search, relevance, and insights](references/search-relevance-and-insights.md) | Hybrid queries, pipelines, ranking, aggregations, relevance experiments, query diagnostics |
| [Vector and neural search](references/vector-and-neural-search.md) | Vector engines and mappings, quantization, remote builds, semantic fields, sparse retrieval, rescoring |
| [Agents, ML, and flows](references/agents-ml-and-flows.md) | Agent execution, memory, connectors, MCP, inference, Flow Framework, AI Search Flows |
| [PPL and SQL](references/ppl-and-sql.md) | Calcite, query APIs, expressions, transformations, analytics execution, SQL compatibility |
| [Security and multitenancy](references/security-and-multitenancy.md) | Authentication, authorization, TLS, resource sharing, tenant metadata, auditing, FIPS |
| [Observability and Dashboards](references/observability-alerting-and-dashboards.md) | Discover, visualizations, traces, metrics, anomaly detection, forecasting, alerting, notifications |

## Breaking changes and deprecations

### Upgrade prerequisites and removals

- Before upgrading to 3.0, reindex all indexes created before OpenSearch 2.x,
  including system indexes. Remove `compatibility.override_main_response_version`.
- OpenSearch requires Java 21 or later in 3.0. A Java agent enforces privileged
  calls using policy files that grant permissions to individual codebases.
- Assign `warm` to nodes hosting searchable snapshot shards before upgrading
  to 3.0; searchable snapshot support moves from the `search` role to `warm`.
- Remove `mmap.extensions` from node configuration and `transport-nio` from
  plugin installation. Remove `index.store.hybrid.mmap.extensions` from index
  settings and templates before upgrading to 3.0.
- Bulk document IDs are limited to 512 bytes in 3.0. Remove the deprecated
  `batch_size` parameter from `/_bulk` calls.
- The default similarity changes from `LegacyBM25Similarity` to `BM25Similarity`
  in 3.0. Recheck score thresholds against the new default when upgrading.
- OpenSearch 3.10.0 removes experimental Views; deployments using them must
  migrate those workloads before upgrading. It also drops macOS x64 archives.

### Client, query, and UI compatibility

- `RestHighLevelClient` is deprecated in 3.9.0. Use `opensearch-java` for Java
  integrations. Extensions using Jackson 2.x directly should declare their
  own dependencies after OpenSearch core removes its Jackson 2.x dependencies.
- OpenSearch 3.0 removes SQL `DELETE`, `plugins.sql.delete.enabled`, and the
  OpenSearch Query DSL response format. SQL pagination defaults to Point in
  Time, and `plugins.sql.pagination.api` is removed. SQL scroll API usage is
  deprecated. Use `async-query-core` for Spark connectivity.
- Core and Learning to Rank search templates no longer resolve Mustache
  partial includes in 3.8.0. Inline any partial content a template depends on.
- Before upgrading to 3.0, migrate notebooks in `.opensearch-observability`
  to the `.kibana`-backed format introduced in 2.17.
- Replace `CatIndexTool` with `ListIndexTool` in agent definitions for 3.0.
- In 3.0, replace `wlm/query_group` with `wlm/workload_group`, read
  `workloadGroupID` instead of `queryGroupID`, and use the `wlm.workload_group`
  cluster-settings prefix.

### Vector and security compatibility

- In 3.0, put `m` and `ef_construction` in the vector field's HNSW method
  parameters and `space_type` in its mapping. The legacy index settings for
  all three and the global k-NN plugin enable setting are removed.
- Creation of new NMSLIB k-NN indexes is blocked in 3.0. Choose another engine.
- Starting in 2.18.0, an omitted k-NN engine selects Faiss. With
  `space_type: "cosinesimil"`, indexing normalizes vectors to unit length;
  retrieved vectors can differ from input. If normalizing vectors yourself,
  use `space_type: "innerproduct"` for equivalent similarity ranking.
- Replace Security `whitelist` settings with `allowlist` equivalents in 3.0.
  The OpenSSL provider is removed. Grant `cluster:monitor/shards` to roles
  calling `/_cat/shards`.
- If S3-compatible storage rejects uploads after a 3.8.0 upgrade with
  `Server side encryption specified but KMS is not configured`, set
  `server_side_encryption_type` to `bucket_default` in repository settings or
  the remote-store repository node attribute to omit the encryption header.
  The default is `bucket_default` in 3.9.0.

## Hybrid search and pipelines

Keep `pagination_depth` fixed between pages while changing `from`:

```json
{
  "from": 10,
  "size": 10,
  "query": {
    "hybrid": {
      "pagination_depth": 100,
      "queries": [{"match": {"title": "tent"}}, {"match": {"description": "tent"}}]
    }
  }
}
```

- Put `hybrid` at the top level and component queries under `hybrid.queries`.
  Hybrid queries cannot use `search_type=dfs_query_then_fetch`; use
  `query_then_fetch`.
- Hybrid pipelines support reciprocal rank fusion with custom weights,
  z-score normalization, and min-max lower and upper score bounds.
- Hybrid search accepts `collapse`, `collapse.inner_hits`, and `min_score`.
  Nested and parent-join subqueries can return `inner_hits`.
- Add `hybrid_score_explanation` to the pipeline and request `explain=true`
  for normalized and combined score explanations. Use `verbose_pipeline=true`
  to inspect each processor's request or response transformations.
- `ml_inference` honors `ignore_failure`; setting it to `true` lets the
  pipeline continue when the processor fails.
- Use a custom previous-rerank-score field to avoid overwriting a document
  field. Rerank `document_fields` accepts nested and dotted field references.

## Vector and semantic search

- Set `index.knn` at creation: it cannot be changed later or overridden or
  removed during snapshot restore. The graph build threshold defaults to `0`.
- A mapping with `model_id` inherits its dimension from training and rejects
  a separate `dimension`. Trained indexes can override method parameters.
- Configure `engine`, `mode`, `compression_level`, and `method` through a
  `semantic` field. Neural sparse queries accept either an analyzer or a
  model ID; supplying both fails validation.
- Faiss and Lucene support 32x scalar quantization for approximate and exact
  k-NN search. Faiss uses one-bit scalar quantization as the default encoder
  for `32x`; Lucene supports one-bit BBQ Flat storage.
- New on-disk indexes with `4x` compression use rescoring by default.
  `"rescore": false` disables the rescore step for on-disk k-NN queries.
- Disabling Faiss efficient-filter exact-search fallback can return fewer
  than `k` hits. Lucene uses `ef_search` for exploration and returns top `k`.
- To retrieve vectors through doc values on Lucene and Faiss indexes at any
  compression level without reindexing, use the following search body.
  Float, byte, and binary vectors are base64-encoded by default.

```json
{"_source": false, "docvalue_fields": ["embedding"]}
```

## PPL and SQL

- Calcite is enabled by default for PPL in 3.0 and is configurable through
  `/_plugins/_query/settings`. `join`, `lookup`, and subsearches require Calcite.
- Automatic fallback after a failed PPL query is disabled by default in 3.2.0.
  In 3.3.0, PPL implicitly falls back to V2 for commands Calcite does not support.
- Date and time functions default to UTC. Use `json(x)` or `cast(x as json)`
  to parse JSON in PPL; omit `spath`'s `path` for automatic JSON extraction.
- Use `fetch_size` to page results and `POST /_tasks/<task_id>/_cancel` to
  cancel an in-flight query. Explain mode and output format are separate.
- With `plugins.ppl.syntax.legacy.preferred=false`, `join` defaults to
  `max=1`. `lookup` accepts `OUTPUT` as an alias for `REPLACE`.
- PPL `union` uses `UNION ALL` semantics and coerces types. `NOT IN` and `NOT LIKE`
  exclude null or missing values. Incompatible PPL `case()` branches return HTTP 400.
- The unified SQL path rejects DML and DDL. SQL `vectorSearch()` supports
  k-NN pushdown and filtering modes. Consult the reference for analytics-route
  command coverage, query errors, and result changes.

## Agents, models, and workflows

- Flow Framework supports synchronous provisioning and per-tenant throttling.
  Its Dashboards ingestion input is JSON Lines, one JSON document per line.
- Agentic search is generally available in 3.3.0. `QueryPlanningTool` supports
  custom templates, aliases, wildcard index patterns, and fallback queries.
  Set an embedding model ID in the translator processor to generate neural queries.
- `conversational_v2` and unified registration become production-ready in 3.7.0.
  Registration creates the connector and model, configures the agent, and maps
  parameters; inputs accept text, multimodal content, and conversation history.
- Query long-term memory with `_semantic_search` or `_hybrid_search` using the
  container's embedding model; scope retrieval by namespace, tags, or filters.
- Memory retention policies are experimental and disabled by default. They
  can expire sessions, long-term memories, and history by age or count; use
  `pinned` for entries that should be retained.
- ML Commons MCP servers support Streamable HTTP and deprecate standalone SSE.
  ML connector `connection_timeout` and `read_timeout` default to 30 seconds.
  Model and local-regex guardrails fail closed.

## Cluster operations and lifecycle

- Use ISM `search_only` for reader/writer separation, `unfollow` to stop
  replication, and Simulate to evaluate transitions against live metrics
  without changing the cluster. `no_alias` and `min_state_age` are transition conditions.
- Pull-based ingestion is a public API in 3.6.0; its warmup phase lets the
  index catch up with the source before serving searches. Use `field_mapping`
  with `mapper_settings` to map incoming fields.
- Set `timeout` in a workload group's `search_settings` to apply a search timeout.
  `override_request_values` controls precedence over explicit request values.
- In 3.10.0, `GET /_cluster/settings/_describe` reports dynamic status,
  defaults, validation bounds, and descriptions, with wildcard prefix filtering.
- CAT APIs in 3.10.0 accept `limit`; combine it with a sort for top rows:

```http
GET /_cat/indices?s=docs.count:desc&limit=5
```

## Security, diagnostics, and Dashboards

- Set dynamic `plugins.security.dls.write_blocked` to `true` to block all
  writes when document-level security restrictions apply.
- Resource sharing uses the requested tenant and filters search results by
  `all_shared_principals`. Resource settings can change dynamically.
- TLS certificate hot reload supports authority validation and can skip the
  distinguished-name check; hot reload also applies to Arrow Flight and stream transports.
- Query Insights filter mode shows users their own queries and queries from
  users sharing a backend role; administrators retain full visibility.
- Historical Query Insights `source` can be a string or JSON object. Live
  Queries can include shard tasks and recently completed searches.
- Top Queries accepts `recommendations`. Use Query Profiler for shard timings
  and query hierarchy; export Top N queries to S3 for long-term storage.
- PPL monitors use existing Alerting APIs. Multi-tenant Alerting disables
  email, findings, chained alert actions, and Job Scheduler indexes.
- In Explore Metrics, the visual builder and raw PromQL editor stay in sync.
  Dashboard variables use `$name` or `${name}` for query-text substitution.

Files in this skill

  • SKILL.md9.4 KB
  • coverage.json1.4 KB
  • references/agents-ml-and-flows.md8.4 KB
  • references/cluster-operations-and-lifecycle.md5.8 KB
  • references/observability-alerting-and-dashboards.md6.8 KB
  • references/ppl-and-sql.md7.7 KB
  • references/search-relevance-and-insights.md6.7 KB
  • references/security-and-multitenancy.md6.5 KB
  • references/upgrades-and-platform.md5.8 KB
  • references/vector-and-neural-search.md8.6 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.