fix(notion-search): correct --filter example syntax in docs
Final review caught that both --filter example locations used simplified
JSON ({"Status": "Done"}) that Notion's data_sources.query API rejects
with a 400. The script passes --filter verbatim, so users copy-pasting
the example would hit a confusing error.
Replace with Notion's actual filter shape:
{"property": "Status", "status": {"equals": "Done"}}
Also added a compound (and/or) example in CLAUDE.md so users have a
reference for combining filters.
30/30 tests still pass.
Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
This commit is contained in:
@@ -28,9 +28,13 @@ python scripts/notion_search.py "AI agents" --json | jq '.[].id'
|
||||
# Constrain to specific databases
|
||||
python scripts/notion_search.py "MCP" --databases f8f19ede-32bd-43ac-9f60-0651f6f40afe
|
||||
|
||||
# Property filter
|
||||
# Property filter (Notion's filter shape — passed verbatim to data_sources.query)
|
||||
python scripts/notion_search.py "MCP" --databases ID \
|
||||
--filter '{"Status": "Done", "Topic": "AI"}'
|
||||
--filter '{"property": "Status", "status": {"equals": "Done"}}'
|
||||
|
||||
# Compound filter (and/or)
|
||||
python scripts/notion_search.py "MCP" --databases ID \
|
||||
--filter '{"and": [{"property": "Status", "status": {"equals": "Done"}}, {"property": "Topic", "multi_select": {"contains": "AI"}}]}'
|
||||
|
||||
# Fast mode (skip LLM stages)
|
||||
python scripts/notion_search.py "exact term" --no-rerank --no-expand
|
||||
|
||||
Reference in New Issue
Block a user