search_notes_ranked
Search Obsidian notes by relevance using BM25 ranking, with filters for folder, tags, or frontmatter. Returns top matching notes with scores and snippets.
Instructions
Full-text search ranked by BM25 relevance, optionally scoped by folder, tags, or a frontmatter where filter. Returns the most relevant notes first (title/heading/tag matches boosted) as note headers with score and snippet. Complements search_notes (which is literal/regex, unranked). A positive limit is capped at 100; offset pages past the cap.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| tags | No | Restrict to notes carrying these tags (leading '#' optional). | |
| limit | No | Maximum number of results (default 100; 0 = unbounded; a positive limit is capped at 100). | |
| match | No | Semantics of tags: 'any' (default) or 'all'. | |
| query | Yes | Free-text query (max 1000 chars). Multi-word queries are ranked by relevance. | |
| where | No | Restrict to notes whose frontmatter satisfies these conditions (query_notes syntax). | |
| folder | No | Restrict to notes under this folder. | |
| offset | No | Ranked hits to skip, for pagination (default 0). |