Skip to content

Introduce utils.inverted for shared cache and index types - #86

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

drametwally merged 1 commit into
mainfrom
utils-inverted-shared

Conversation

@drametwally

Copy link
Copy Markdown
Collaborator

Summary

  • Add searchablestructure.utils.inverted with KeyAndPrefixFilteringData, KeyAndUniTransformedValue, and PopularTermDiscardPolicy.
  • Wire InvertedTermCache, BaseInvertedIndex, HybridIndex, and FilteredSearch to the shared package so cache reads popularity thresholds from cache_params and indexes from index_params through one policy type.
  • Relocate unit tests under utils.inverted and extend PopularTermDiscardPolicyTest for separate index versus cache param bags.

Test plan

  • bazel test //:test_main

Move KeyAndPrefixFilteringData, KeyAndUniTransformedValue, and
PopularTermDiscardPolicy under searchablestructure.utils.inverted so
the inverted term cache and indexes share one popularity policy and
prefix-filtering key types without a cache-to-index dependency.
@drametwally
drametwally merged commit fa2e681 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