Files
BadNote/lib/editor/search/search_ranking.dart
Akiba So c1a35b3290
Some checks failed
CI / Windows build (push) Has been cancelled
feat(f8): search ranking + multi-source aggregation
scoreText (more normalized occurrences rank higher; earlier first match breaks
ties) and rankHits (score every source, drop non-matches, attach a display
snippet of the original text, sort best-first with an explicit input-order
tiebreak since Dart's sort isn't stable). The search_indexer's pure ranking
core, making search_text + search_snippet load-bearing.

flutter analyze lib/editor clean; 223/223 tests (+9).

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
2026-06-23 03:41:06 +08:00

2.7 KiB