From f1377018b0aa7c537360bf1ba836e4b7e78dceb0 Mon Sep 17 00:00:00 2001 From: Paul Masurel Date: Mon, 19 Jan 2026 16:44:47 +0100 Subject: [PATCH] blop --- src/codec/standard/postings/mod.rs | 2 +- src/index/inverted_index_reader.rs | 2 +- src/query/term_query/mod.rs | 1 - src/query/term_query/term_weight.rs | 1 - 4 files changed, 2 insertions(+), 4 deletions(-) diff --git a/src/codec/standard/postings/mod.rs b/src/codec/standard/postings/mod.rs index 70a7189b6..7c7ebbc14 100644 --- a/src/codec/standard/postings/mod.rs +++ b/src/codec/standard/postings/mod.rs @@ -2,7 +2,7 @@ use std::io; use crate::codec::postings::PostingsCodec; use crate::codec::standard::postings::block_segment_postings::BlockSegmentPostings; -use crate::codec::standard::postings::segment_postings::SegmentPostings; +pub use crate::codec::standard::postings::segment_postings::SegmentPostings; use crate::fieldnorm::FieldNormReader; use crate::positions::PositionReader; use crate::schema::IndexRecordOption; diff --git a/src/index/inverted_index_reader.rs b/src/index/inverted_index_reader.rs index 142f92fe7..3756e512b 100644 --- a/src/index/inverted_index_reader.rs +++ b/src/index/inverted_index_reader.rs @@ -196,7 +196,7 @@ impl InvertedIndexReader { fieldnorm_reader, similarity_weight, )?; - Ok(Box::new(term_scorer)) + Ok(term_scorer) } pub fn read_postings_from_terminfo_specialized( diff --git a/src/query/term_query/mod.rs b/src/query/term_query/mod.rs index f06be093b..2c3a286af 100644 --- a/src/query/term_query/mod.rs +++ b/src/query/term_query/mod.rs @@ -7,7 +7,6 @@ pub use self::term_scorer::TermScorer; #[cfg(test)] mod tests { - use crate::collector::TopDocs; use crate::docset::DocSet; use crate::postings::compression::COMPRESSION_BLOCK_SIZE; diff --git a/src/query/term_query/term_weight.rs b/src/query/term_query/term_weight.rs index e85ce9a11..9f75255ea 100644 --- a/src/query/term_query/term_weight.rs +++ b/src/query/term_query/term_weight.rs @@ -1,7 +1,6 @@ use crate::docset::{DocSet, COLLECT_BLOCK_BUFFER_LEN}; use crate::fieldnorm::FieldNormReader; use crate::index::SegmentReader; -use crate::postings::Postings; use crate::query::bm25::Bm25Weight; use crate::query::weight::{for_each_docset_buffered, for_each_scorer}; use crate::query::{AllScorer, EmptyScorer, Explanation, Scorer, Weight};