Repository navigation
Bound sequence spars_merge with partial Ruzicka on indexed multisets - #83
Merged
Merged
Conversation
spars_merge on inverted_term with gld or ngld now prunes rows during merge using partial Ruzicka conjunction over indexed term counts. The configured sequence comparator supplies the minimum shared-key fraction. Verification still scores ordered sequences. Posting values are materialized on sequence term lists when those bounds apply.
ComparatorCapabilities holds ConjunctionScored, KeyShareBounded, and DotProductScored probes. Inverted spars_merge partial-conjunction policy selection lives on MergeSearch.PartialConjunctionPolicy.forInvertedMerge. SearchThreads cancellation test releases blocked workers so awaitWorkUnits cannot time out after interrupt.
ComparatorType states dot-product, key-share, and merge-conjunction capabilities. ComparatorFactory is the cast boundary; indices hold typed facets or a built partial-conjunction policy. ComparatorCapabilities is removed and merge search no longer probes the configured comparator.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
gldandngldoninverted_term, with the minimum similarity threshold mapped throughKeyShareBounded.ConjunctionScoredpartial bounds with scanned union mass. Move merge threshold mapping toKeyShareBounded. Add unit and integration tests.Test plan
bazel test //:test_main