mirror of
https://github.com/meilisearch/meilisearch.git
synced 2025-01-19 01:18:31 +08:00
Make some cleaning
This commit is contained in:
parent
6dc345bc53
commit
b3f0f39106
@ -37,7 +37,7 @@ pub use self::heed_codec::{
|
|||||||
};
|
};
|
||||||
pub use self::index::Index;
|
pub use self::index::Index;
|
||||||
pub use self::search::{
|
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>;
|
pub type Result<T> = std::result::Result<T, error::Error>;
|
||||||
|
@ -1,8 +1,7 @@
|
|||||||
use std::borrow::Cow;
|
use std::borrow::Cow;
|
||||||
|
|
||||||
pub use matching_words::MatchingWords;
|
pub use matching_words::MatchingWords;
|
||||||
use meilisearch_tokenizer::token::SeparatorKind;
|
use meilisearch_tokenizer::token::{SeparatorKind, Token};
|
||||||
use meilisearch_tokenizer::{Analyzer, AnalyzerConfig, Token};
|
|
||||||
|
|
||||||
use crate::search::query_tree::Operation;
|
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)]
|
#[derive(Clone, Debug)]
|
||||||
pub struct Match {
|
pub struct Match {
|
||||||
match_len: usize,
|
match_len: usize,
|
||||||
@ -115,8 +103,8 @@ pub struct Match {
|
|||||||
|
|
||||||
#[derive(Clone, Debug)]
|
#[derive(Clone, Debug)]
|
||||||
pub struct MatchBounds {
|
pub struct MatchBounds {
|
||||||
start: usize,
|
pub start: usize,
|
||||||
length: usize,
|
pub length: usize,
|
||||||
}
|
}
|
||||||
|
|
||||||
pub struct Matcher<'t, 'm> {
|
pub struct Matcher<'t, 'm> {
|
||||||
|
@ -17,7 +17,7 @@ use roaring::bitmap::RoaringBitmap;
|
|||||||
|
|
||||||
pub use self::facet::{FacetDistribution, FacetNumberIter, Filter};
|
pub use self::facet::{FacetDistribution, FacetNumberIter, Filter};
|
||||||
use self::fst_utils::{Complement, Intersection, StartsWith, Union};
|
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 self::query_tree::QueryTreeBuilder;
|
||||||
use crate::error::UserError;
|
use crate::error::UserError;
|
||||||
use crate::search::criteria::r#final::{Final, FinalResult};
|
use crate::search::criteria::r#final::{Final, FinalResult};
|
||||||
|
Loading…
Reference in New Issue
Block a user