Skip to content

chore(deps): bump tantivy from 0.22.1 to 0.27.0 - #51

Merged
dubadub merged 1 commit into
mainfrom
fix/tantivy-0.27
Nov 10, 2026
Merged

dubadub merged 1 commit into
mainfrom
fix/tantivy-0.27

Conversation

@dubadub

@dubadub dubadub commented Nov 10, 2026

Copy link
Copy Markdown
Member

Replaces #48, which fails to compile against the 0.27 API.

  • TopDocs is no longer a Collector on its own: add .order_by_score().
  • RangeQuery::new_i64_bounds is gone: use RangeQuery::new with Term::from_field_i64 bounds.
  • Stored values: read via the Value trait (as_str / as_i64) instead of matching OwnedValue.

Index format: 0.27 writes format 7 and still reads format >= 4, so the existing (format 6) index opens. Rolling back to 0.22 after new segments are written would need a reindex.

Verified locally: cargo build --all-targets, cargo clippy --all-targets --all-features -D warnings, cargo fmt --check, cargo test all pass.

Adapt to the 0.27 API: TopDocs needs order_by_score() to be a collector,
RangeQuery::new takes Term bounds (new_i64_bounds is gone), and stored
values are read through the Value trait instead of matching OwnedValue.

Index format goes 6 -> 7; 0.27 still opens format >= 4, so existing
indexes load. New segments are format 7, which 0.22 cannot read.
@dubadub
dubadub merged commit 0149cb5 into main Nov 10, 2026
4 of 5 checks passed
@dubadub
dubadub deleted the fix/tantivy-0.27 branch November 10, 2026 10:30
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