Skip to content

Commit db6d0dc

Browse files
phernandezclaude
andcommitted
docs: add tag: shorthand limitation note to search_notes docstring
The tag: query shorthand doesn't work with hybrid search (default when semantic search is enabled) because it strips the text query. Document the workaround: use search_type="text" or the tags parameter instead. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com> Signed-off-by: phernandez <paul@basicmachines.co>
1 parent 5a5eb44 commit db6d0dc

1 file changed

Lines changed: 4 additions & 0 deletions

File tree

src/basic_memory/mcp/tools/search.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -302,6 +302,10 @@ async def search_notes(
302302
- `search_notes("work-project", "category:observation")` - Filter by observation categories
303303
- `search_notes("team-docs", "author:username")` - Find content by author (if metadata available)
304304
305+
**Note:** `tag:` shorthand requires `search_type="text"` when semantic search is enabled
306+
(the default is hybrid). Alternatively, use the `tags` parameter for tag filtering with
307+
any search type: `search_notes("project", "query", tags=["my-tag"])`
308+
305309
### Search Type Examples
306310
- `search_notes("my-project", "Meeting", search_type="title")` - Search only in titles
307311
- `search_notes("work-docs", "docs/meeting-*", search_type="permalink")` - Pattern match permalinks

0 commit comments

Comments
 (0)