Search

Change library search or comparison-screen change filtering. Use when SearchIndex ranking, limits, or ChangeSearchIndex behaviour is wrong.

hoangsonww 0870bcd 722 B Updated

File contents

Search

SearchIndex is capability-agnostic: snapshots, sections, entities, properties. Adding a collector must not require search-code edits.

  • Empty or whitespace queries return nothing for snapshot search.
  • All terms must match (AND).
  • Ranking: exact title > prefix > substring > whole-word haystack. Ties break by newer date, then id.
  • ChangeSearchIndex empty query returns all changes (filter field, not a library search).

Tests: Tests/Domain/SearchIndexTests.swift and search invariants. Do not introduce a ranking ML model.

hoangsonww/diffuse-native-apps/tree/main/.agents/skills/search commit 0870bcd9fc

Frequently asked questions

npx skillmds@latest add hoangsonww/search