Skip to content

Share search and scan utilities across cache and index types - #87

Merged
drametwally merged 1 commit into
mainfrom
utils-shared-search-scan
Oct 1, 2026
Merged

drametwally merged 1 commit into
mainfrom
utils-shared-search-scan

Conversation

@drametwally

Copy link
Copy Markdown
Collaborator

Summary

  • Add utils.search.SearchRequests for k/minSimilarity validation, namespace result caps, and empty-search short-circuiting used by every cache and index type.
  • Add utils.scan.ComparatorRowScan for comparator scoring during ParallelRowScan (scan cache, scan index, inverted term cache brute-force path).
  • Centralize validation on Cache and Index public search methods; concrete structures implement searchNearestNeighbors / searchSimilarRowNums (indexes) or locked hooks with resolved limits (caches).

Stacks on #86 (utils.inverted); merge #86 first or merge this branch as one unit.

Test plan

  • bazel test //:test_main

Add utils.search.SearchRequests for k and minSimilarity checks and result
limits, and utils.scan.ComparatorRowScan for parallel full-scan scoring.
Cache and Index entry points delegate to them so scan, matrix, and inverted
implementations share one path.
@drametwally
drametwally force-pushed the utils-shared-search-scan branch from 160f710 to 265bba2 Compare October 1, 2026 04:09
@drametwally
drametwally merged commit be0cec5 into main Oct 1, 2026
3 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant