cli/pkg/help
Snider 2b68a26a1b feat(help): add full-text search functionality
Implements #139: full-text search for help topics.

- Add searchIndex with inverted index for fast lookups
- Add tokenize() for case-insensitive word extraction
- Add Search() with relevance ranking:
  - Exact word matches score 1.0
  - Prefix matches score 0.5
  - Title matches get 2.0 boost
- Add snippet extraction for search result context
- Add section-level matching for precise results
- Add comprehensive tests following _Good/_Bad naming

Search features:
- Case-insensitive matching
- Partial word matching (prefix)
- Title boost (matches in title rank higher)
- Section-level results
- Snippet extraction with context

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2026-02-01 23:30:30 +00:00
..
parser.go feat(help): add markdown parsing and section extraction 2026-02-01 23:14:49 +00:00
parser_test.go feat(help): add markdown parsing and section extraction 2026-02-01 23:14:49 +00:00
search.go feat(help): add full-text search functionality 2026-02-01 23:30:30 +00:00
search_test.go feat(help): add full-text search functionality 2026-02-01 23:30:30 +00:00
topic.go feat(help): add markdown parsing and section extraction 2026-02-01 23:14:49 +00:00