pub(crate) fn new(
        ctx: QueryContext,
        stop_words: StopWordManager,
        corrections: SymSpellCorrectionManager,
        synonyms: SynonymsManager,
        index: &Index,
        pool: crate::ReaderExecutor,
    ) -> Self {
        let parser = get_parser(&ctx, index);
        let tokenizer = TextAnalyzer::from(SimpleTokenizer).filter(LowerCaser);

        Self {
            ctx: Arc::new(ctx),
            corrections,
            stop_words,
            synonyms,
            query_parser: Arc::new(parser),
            pool,
            schema: index.schema(),
            tokenizer,
        }
    }
/// Creates a new `QueryHandler` from the given parameters.
Creates a new `QueryHandler` from the given parameters.
Creates a new ` QueryHandler ` from the given parameters .
pub(crate) fn new(
        ctx: QueryContext,
        stop_words: StopWordManager,
        corrections: SymSpellCorrectionManager,
        synonyms: SynonymsManager,
        index: &Index,
        pool: crate::ReaderExecutor,
    ) -> Self {
        let parser = get_parser(&ctx, index);
        let tokenizer = TextAnalyzer::from(SimpleTokenizer).filter(LowerCaser);
        Self {
            ctx: Arc::new(ctx),
            corrections,
            stop_words,
            synonyms,
            query_parser: Arc::new(parser),
            pool,
            schema: index.schema(),
            tokenizer,
        }
    }
pub ( crate ) fn new ( ctx : QueryContext , stop_words : StopWordManager , corrections : SymSpellCorrectionManager , synonyms : SynonymsManager , index : & Index , pool : crate :: ReaderExecutor , ) -> Self { let parser = get_parser ( & ctx , index ) ; let tokenizer = TextAnalyzer :: from ( SimpleTokenizer ) . filter ( LowerCaser ) ; Self { ctx : Arc :: new ( ctx ) , corrections , stop_words , synonyms , query_parser : Arc :: new ( parser ) , pool , schema : index . schema ( ) , tokenizer , } }
Creates a new `QueryHandler` from the given parameters.
Creates a new ` QueryHandler ` from the given parameters .
ctx
QueryContext
stop_words
StopWordManager
corrections
SymSpellCorrectionManager
synonyms
SynonymsManager
index
&Index
pool
crate::ReaderExecutor
ctx
QueryContext
stop_words
StopWordManager
corrections
SymSpellCorrectionManager
synonyms
SynonymsManager
index
&Index
pool
crate::ReaderExecutor