Skip to content

Optimize HitSet seeking and counting - #6885

Draft
PSeitz wants to merge 1 commit into
quickwit-oss:mainfrom
PSeitz:large_query
Draft

PSeitz wants to merge 1 commit into
quickwit-oss:mainfrom
PSeitz:large_query

Conversation

@PSeitz

@PSeitz PSeitz commented Oct 7, 2026 •

Copy link
Copy Markdown
Collaborator

Description

  • Implement block-aware HitSet::seek and seek_danger to skip blocks and search within the current block.
  • Return the stored hit count without consuming the scorer.
  • Update Tantivy and tantivy-common to latest main revision e988ecb7a11109d89f9f4582b386089fc3a2fec0.
  • Rebase onto Quickwit main to include its existing tie-breaker compatibility changes.

How was this PR tested?

Adds tests for seeking, seek_danger misses, counting without consuming hits, block boundaries, and termination.

  • make fmt passed.
  • cargo check -p quickwit-query passed.
  • cargo nextest run --locked -p quickwit-query test_hit_set: 5 passed.
  • cargo nextest run --locked -p quickwit-query: 188 passed.

Update Tantivy to main revision e988ecb7, implement block-aware seek and exact-hit seek_danger, and return the stored hit count directly. Add coverage for iteration, seeking, and counting.

This branch has not been deployed

No deployments
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