?
SIYUAN-21
feature
Created: 2026-02-02 Updated: 2026-02-03
Relationships Loading...
Attachments
Loading...
Comments (3)
Claude QA · 2026-02-03
# QA Verification Report: SIYUAN-21 **Issue:** Documentation: Update README for enhanced search **Branch:** SIYUAN-21 **Commit:** 46e33aa **Date:** 2026-02-03 **QA Engineer:** Claude QA Agent ## Verification Status: ✅ VERIFIED ## Summary The README documentation has been successfully updated to reflect the enhanced search command implementation. All outdated options have been removed, and comprehensive documentation has been added covering all CLI options, block types, query syntax, and practical examples. ## Verification Details ### 1. README Documentation Accuracy ✅ **Options table verified:** - ✅ All 8 CLI options documented with correct names - ✅ Default values match CLI implementation - ✅ Short flags (-m, -o, -g, -t, -b, -p) correct - ✅ No references to old `--limit` option (now `--page-size`) - ✅ No references to old `--sort` option (now `--order`) **Comparison:** ``` README.md (lines 216-225): | --method | -m | keyword/query/sql/regex | keyword | | --order | -o | relevance/created/etc | relevance | | --group | -g | none/document | none | | --type | -t | Filter by block type | - | | --box | -b | Filter by notebook ID | - | | --path | -p | Filter by path | - | | --page | | Page number (1-indexed) | 1 | | --page-size| | Results per page | 20 | CLI help output: ✅ Exact match ``` ### 2. Block Types List ✅ **README lists 12 block types:** `document`, `heading`, `paragraph`, `code`, `math`, `table`, `list`, `listItem`, `blockquote`, `superBlock`, `htmlBlock`, `embedBlock` **CLI supports:** ``` -t, --type [document|heading|paragraph|code|math|table|list|listItem|blockquote|superBlock|htmlBlock|embedBlock] ``` ✅ **Complete match - all 12 types documented** ### 3. Query Syntax Documentation ✅ **README documents:** ```markdown **Query syntax (for `--method query`):** Field filters: `content:`, `tag:`, `name:`, `alias:`, `memo:` ``` ✅ **Query syntax correctly documented for --method query** ### 4. Examples Verification ✅ All 8 examples in README (lines 235-260) verified: 1. ✅ `siyuan search "api"` - Basic keyword search 2. ✅ `siyuan search "pattern.*test" --method regex` - Regex search 3. ✅ `siyuan search "term" --type document` - Single type filter 4. ✅ `siyuan search "term" --type heading --type paragraph` - Multiple types 5. ✅ `siyuan search "term" --order created` - Sort by creation 6. ✅ `siyuan search "term" --group document` - Document grouping 7. ✅ `siyuan search "term" --page 2 --page-size 10` - Pagination 8. ✅ `siyuan search "api" --type document --order updated --page-size 50` - Combined 9. ✅ `siyuan --format json search "api" | jq '.blocks[].content'` - JSON output **All examples use correct option names and syntax** ### 5. No Outdated References ✅ Verified no references to old options: ```bash grep -n "\-\-limit\|\-\-sort" README.md # No matches found ✅ ``` ### 6. Test Suite ✅ ``` make test ===================== 318 passed, 176 deselected in 1.06s ====================== ``` ✅ **All 318 unit tests pass** ### 7. Code Quality ✅ - ✅ Documentation follows project standards - ✅ Formatting consistent with rest of README - ✅ Examples properly formatted in code blocks - ✅ Table structure clear and readable ## Changes Verified **File:** README.md **Lines modified:** 206-260 (+45/-10 lines) **Sections updated:** 1. Search Command overview (lines 206-212) 2. Options table (lines 214-225) 3. Block types list (line 228) 4. Query syntax (lines 230-231) 5. Examples section (lines 233-260) ## Acceptance Criteria Met ✅ **Pass Criteria:** 1. ✅ README accurately describes all CLI options 2. ✅ All examples are correct and runnable 3. ✅ Block types list is complete (12 types) 4. ✅ Query syntax is documented 5. ✅ No references to old options (--limit, --sort) ❌ **Fail Criteria (none found):** - ❌ Outdated option names or descriptions - ❌ Examples that don't work - ❌ Missing documentation for any option ## Evidence ### CLI Help Output ``` Options: -m, --method [keyword|query|sql|regex] Search method. [default: keyword] -o, --order [relevance|relevance-asc|created|created-asc|updated|updated-asc|type|content] Sort order for results. [default: relevance] -g, --group [none|document] Group results by document. [default: none] -t, --type [document|heading|paragraph|code|math|table|list|listItem|blockquote|superBlock|htmlBlock|embedBlock] Filter by block type. Can be specified multiple times. -b, --box TEXT Filter by notebook ID. Can be specified multiple times. -p, --path TEXT Filter by path. Can be specified multiple times. --page INTEGER Page number (1-indexed). [default: 1] --page-size INTEGER Results per page. [default: 20] ``` ### Test Results - Total tests: 318 - Passed: 318 - Failed: 0 - Deselected: 176 (integration tests) - Duration: 1.06s ## Recommendations None - implementation is complete and correct. ## Conclusion **VERIFIED**: The documentation update for SIYUAN-21 successfully addresses all requirements. The README now accurately reflects the enhanced search command implementation, with no outdated references, complete option documentation, and correct examples. **Ready for:** Issue status can be updated to `done`
agent · 2026-02-03
## Documentation Update Complete **Problem:** README documented outdated search command options: - `--limit` (should be `--page-size`) - `--sort` (should be `--order`) - `--type d` syntax (should be `--type document`) **Changes made:** - Updated README.md lines 206-260 with comprehensive search documentation - Added options table with all 8 CLI options and their defaults - Documented all 12 valid block types - Added query syntax for `--method query` field filters - Included 8 practical examples covering all features **Verification:** - All 318 unit tests pass (`make test`) - No references to old options remain - Examples match actual CLI implementation **Files changed:** README.md (+45/-10 lines)
triage-agent · 2026-02-03
## Feature Triage Complete **Status:** PARTIALLY IMPLEMENTED (outdated documentation exists) **Summary:** The search command was enhanced with the fullTextSearchBlock API, but README documentation still references old options (`--limit`, `--sort`, `--type d`) that no longer exist. Documentation needs to be updated to match actual CLI implementation. **Current README Issues:** - `--limit` does not exist (now `--page-size`) - `--sort` does not exist (now `--order`) - `--type d` does not work (should be `--type document`) **Implementation Location:** - `README.md` lines 206-225 (Search Command section) **Complexity:** Low - straightforward documentation update with well-defined spec in ticket **Dependencies:** None - purely documentation change See attached triage report at `/tmp/triage-SIYUAN-21.md` for full details including: - Complete options table - All 12 valid block types - Query syntax documentation - Implementation approach