Make some cleaning

This commit is contained in:
ManyTheFish 2022-03-30 15:22:18 +02:00
parent 6dc345bc53
commit b3f0f39106
3 changed files with 5 additions and 17 deletions

View File

@ -37,7 +37,7 @@ pub use self::heed_codec::{
};
pub use self::index::Index;
pub use self::search::{
FacetDistribution, Filter, MatcherBuilder, MatchingWords, Search, SearchResult,
FacetDistribution, Filter, MatchBounds, MatcherBuilder, MatchingWords, Search, SearchResult,
};
pub type Result<T> = std::result::Result<T, error::Error>;

View File

@ -1,8 +1,7 @@
use std::borrow::Cow;
pub use matching_words::MatchingWords;
use meilisearch_tokenizer::token::SeparatorKind;
use meilisearch_tokenizer::{Analyzer, AnalyzerConfig, Token};
use meilisearch_tokenizer::token::{SeparatorKind, Token};
use crate::search::query_tree::Operation;
@ -91,17 +90,6 @@ impl MatcherBuilder {
}
}
// impl Default for MatcherBuilder {
// fn default() -> Self {
// Self {
// crop_size: DEFAULT_CROP_SIZE,
// crop_marker: None,
// highlight_prefix: None,
// highlight_suffix: None,
// }
// }
// }
#[derive(Clone, Debug)]
pub struct Match {
match_len: usize,
@ -115,8 +103,8 @@ pub struct Match {
#[derive(Clone, Debug)]
pub struct MatchBounds {
start: usize,
length: usize,
pub start: usize,
pub length: usize,
}
pub struct Matcher<'t, 'm> {

View File

@ -17,7 +17,7 @@ use roaring::bitmap::RoaringBitmap;
pub use self::facet::{FacetDistribution, FacetNumberIter, Filter};
use self::fst_utils::{Complement, Intersection, StartsWith, Union};
pub use self::matches::{Matcher, MatcherBuilder, MatchingWords};
pub use self::matches::{MatchBounds, Matcher, MatcherBuilder, MatchingWords};
use self::query_tree::QueryTreeBuilder;
use crate::error::UserError;
use crate::search::criteria::r#final::{Final, FinalResult};