Skip to content

Commit 791e794

Browse files
committed
Made BooleanWeight and BoostWeight public
1 parent 0ed13ee commit 791e794

File tree

3 files changed

+4
-5
lines changed

3 files changed

+4
-5
lines changed

src/query/boolean_query/mod.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ mod boolean_weight;
44

55
pub(crate) use self::block_wand::{block_wand, block_wand_single_scorer};
66
pub use self::boolean_query::BooleanQuery;
7-
pub(crate) use self::boolean_weight::BooleanWeight;
7+
pub use self::boolean_weight::BooleanWeight;
88

99
#[cfg(test)]
1010
mod tests {

src/query/boost_query.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ impl Query for BoostQuery {
5454
}
5555
}
5656

57-
pub(crate) struct BoostWeight {
57+
pub struct BoostWeight {
5858
weight: Box<dyn Weight>,
5959
boost: Score,
6060
}

src/query/mod.rs

+2-3
Original file line numberDiff line numberDiff line change
@@ -35,9 +35,8 @@ pub use self::all_query::{AllQuery, AllScorer, AllWeight};
3535
pub use self::automaton_weight::AutomatonWeight;
3636
pub use self::bitset::BitSetDocSet;
3737
pub use self::bm25::{Bm25StatisticsProvider, Bm25Weight};
38-
pub use self::boolean_query::BooleanQuery;
39-
pub(crate) use self::boolean_query::BooleanWeight;
40-
pub use self::boost_query::BoostQuery;
38+
pub use self::boolean_query::{BooleanQuery, BooleanWeight};
39+
pub use self::boost_query::{BoostQuery, BoostWeight};
4140
pub use self::const_score_query::{ConstScoreQuery, ConstScorer};
4241
pub use self::disjunction_max_query::DisjunctionMaxQuery;
4342
pub use self::empty_query::{EmptyQuery, EmptyScorer, EmptyWeight};

0 commit comments

Comments
 (0)