Install
$ agentstack add skill-azure-documentdb-agent-kit-full-text-search ✓ scanned · ✓ verified — works with Claude Code, Cursor, and more.
Security review
✓ PassedNo issues found. Passed automated security review. · v0.1.0 How review works →
- ✓ Prompt-injection patterns
- ✓ Secret / credential exfiltration
- ✓ Dangerous shell & filesystem operations
- ✓ Untrusted network calls
- ✓ Known-malicious package signatures
What it can access
- ✓ Network access No
- ✓ Filesystem access No
- ✓ Shell / process execution No
- ✓ Environment & secrets No
- ✓ Dynamic code execution No
From automated source analysis of v0.1.0. “Used” means the capability is present in the source — more access means more to trust, not that it’s unsafe.
About
Full-Text Search — Azure DocumentDB ($search + createSearchIndexes)
Azure DocumentDB's full-text search is driven by search indexes built with the createSearchIndexes database command and queried through the $search aggregation stage. Scoring is BM25, exposed via $meta: "searchScore". The community $text operator and { field: "text" } index type are not the DocumentDB search path.
Key syntax points that differ from many blog posts and older docs:
- Index command is
createSearchIndexes(notcreateIndexes) — each index has anameand adefinition.mappings.fieldsblock;dynamic: falseis the safe default. - Custom analyzers live inside
definition.analyzersand are referenced per-field viaanalyzer/searchAnalyzer. $searchtargets an index by name viaindex: ""— the engine does not auto-pick when multiple exist.- No
countfield inside$search— use a downstream{ $limit: N }stage. - No
compoundoperator yet — query one field at a time and merge in the application (seefts-multifield-index).
Rules
- [fts-create-search-index](fts-create-search-index.md) — Create a search index via
runCommand({ createSearchIndexes }); usedefinition.mappingswithdynamic: false. - [fts-basic-search](fts-basic-search.md) —
$search+textoperator for BM25 keyword search; targetindex, projectsearchScore, cap with$limit. - [fts-fuzzy-search](fts-fuzzy-search.md) — Add
fuzzy: { maxEdits: 1 }to tolerate typos; keepmaxEditssmall. - [fts-phrase-search](fts-phrase-search.md) —
phraseoperator withslopfor ordered-proximity matching. - [fts-custom-analyzers](fts-custom-analyzers.md) — Keyword tokenizer +
lowerCase+asciiFolding+edgeGramfor case-insensitive prefix matching on IDs, SKUs, part numbers. Index-time vs search-time analyzer pair. - [fts-path-hierarchy](fts-path-hierarchy.md) —
pathHierarchytokenizer for hierarchical identifiers (BN-747-ENG-2024.05, dotted, slash paths). - [fts-multifield-index](fts-multifield-index.md) — One search index mapping multiple fields; fan-out-and-merge in the app while
$searchcompoundis unavailable. - [fts-hybrid-search](fts-hybrid-search.md) — Combine BM25 and vector search (RRF) on the same collection.
Source & license
This open-source skill is cataloged on AgentStack and links to its original source — we do not rehost the code.
- Author: Azure
- Source: Azure/documentdb-agent-kit
- License: MIT
Install and usage instructions live in the source repository linked above.
Reviews
No reviews yet — be the first.
Write a review
Versions
- v0.1.0 Imported from the upstream source.