Skip to content
Back to skills

Opensearch Query Review

ASecurity

Review OpenSearch 3.5 search queries. Inspect dynamic bool queries (filter vs query context, builder safety, paging), vector k-NN queries (k/ef_search, efficient filtering, under-fetch, radial, nested), hybrid (normalization/RRF)·neural/sparse/semantic, and search pipelines. Use when authoring/modifying queries or diagnosing search-result/latency problems. Ground claims in the OpenSearch official-docs KB.

  • 2 stars
  • 0 votes
  • 0 copies
  • 3 views
  • Added November 19, 2026
ai-agentsgoapi

Works with

  • cli
  • api

Security analysis

A100/100

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

Scanned November 19, 2026

npx -y skills add ch4570/vulpora --skill opensearch-query-review --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Opensearch Query Review?

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

Security grade badge for Opensearch Query Review
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/ch4570-opensearch-query-review/badge)](https://www.skillsdirectory.com/skills/ch4570-opensearch-query-review)

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-query-review
description: >-
  Review OpenSearch 3.5 search queries. Inspect dynamic bool queries (filter vs query context,
  builder safety, paging), vector k-NN queries (k/ef_search, efficient filtering, under-fetch,
  radial, nested), hybrid (normalization/RRF)·neural/sparse/semantic, and search pipelines. Use
  when authoring/modifying queries or diagnosing search-result/latency problems. Ground claims in
  the OpenSearch official-docs KB.
---

# OpenSearch Query Building Review (Query Review)

Grounding principles are in `reference/principles.md`. For facts, prefer `reference/kb/` (official docs).

## Review order (proceed exactly like this)
1. **What the query is asking** — result set, filter selectivity, frequency, sort/paging pattern.
2. **Dynamic bool** check — `reference/kb/query-dsl-basics.md` (filter context, term/match, builder safety).
3. **Relevance·paging** — `reference/kb/relevance-scoring.md` (BM25/boost/min_score) · `reference/kb/pagination-search-after.md`.
4. **Vector/hybrid** check — `reference/kb/vector-hybrid-query.md` (k vs ef_search, efficient filtering, normalization/RRF). **If hybrid/neural grep returns 0, state "not applicable"**.
5. **Slowness diagnosis** — `reference/kb/profiling-explain.md` (Profile API). Provide a fix (query diff) with severity + re-measurement (recall@k·p99).

## Quick checklist
- [ ] Is a no-score condition in `must`? → `filter`/`must_not` (skip scoring + cache).
- [ ] Does the dynamic builder enforce a field whitelist, a `terms` size cap, and avoid `script`/wildcard?
- [ ] Is deep paging using `from`+`size`? → `search_after`/PIT.
- [ ] In k-NN, is `ef_search ≥ k`? A variable `k` with a fixed `ef_search` means a ceiling mismatch.
- [ ] When a filter is present, is it efficient k-NN filtering, and does a selective filter under-fetch (over-fetch/exact fallback)?
- [ ] (hybrid) Is there a normalization/RRF processor? Are the neural ingest↔query model_id the same?
- [ ] Did a type-based client work around `terms` via `bool.should`? → replace with the native form.

## KB (read and cite first)
From `reference/kb/INDEX.md`: `reference/kb/query-dsl-basics.md` · `reference/kb/relevance-scoring.md` · `reference/kb/vector-hybrid-query.md` · `reference/kb/pagination-search-after.md` · `reference/kb/profiling-explain.md`

## Deliverable
For each finding: problem → principle/KB source → query diff → re-measurement (recall@k sweep·p99). "It got faster" is confirmed only by measurement.

Files in this skill

  • SKILL.md2.5 KB
  • reference/kb/INDEX.md1.6 KB
  • reference/kb/pagination-search-after.md2.9 KB
  • reference/kb/profiling-explain.md2.6 KB
  • reference/kb/query-dsl-basics.md3.4 KB
  • reference/kb/relevance-scoring.md3.1 KB
  • reference/kb/vector-hybrid-query.md4 KB
  • reference/principles.md4.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.