mirror of
				https://github.com/meilisearch/meilisearch.git
				synced 2025-10-29 23:16:26 +00:00 
			
		
		
		
	remove everything about pest
This commit is contained in:
		| @@ -23,8 +23,7 @@ use nom::{ | ||||
|  | ||||
| use self::FilterCondition::*; | ||||
| use self::Operator::*; | ||||
| use super::parser::FilterParser; | ||||
| use super::parser::{Rule, PREC_CLIMBER}; | ||||
|  | ||||
| use super::FacetNumberRange; | ||||
| use crate::error::{Error, UserError}; | ||||
| use crate::heed_codec::facet::{ | ||||
|   | ||||
| @@ -2,10 +2,8 @@ pub use self::facet_distribution::FacetDistribution; | ||||
| pub use self::facet_number::{FacetNumberIter, FacetNumberRange, FacetNumberRevRange}; | ||||
| pub use self::facet_string::FacetStringIter; | ||||
| pub use self::filter_condition::{FilterCondition, Operator}; | ||||
| pub(crate) use self::parser::Rule as ParserRule; | ||||
|  | ||||
| mod facet_distribution; | ||||
| mod facet_number; | ||||
| mod facet_string; | ||||
| mod filter_condition; | ||||
| mod parser; | ||||
|   | ||||
| @@ -1,12 +0,0 @@ | ||||
| use once_cell::sync::Lazy; | ||||
| use pest::prec_climber::{Assoc, Operator, PrecClimber}; | ||||
|  | ||||
| pub static PREC_CLIMBER: Lazy<PrecClimber<Rule>> = Lazy::new(|| { | ||||
|     use Assoc::*; | ||||
|     use Rule::*; | ||||
|     pest::prec_climber::PrecClimber::new(vec![Operator::new(or, Left), Operator::new(and, Left)]) | ||||
| }); | ||||
|  | ||||
| #[derive(Parser)] | ||||
| #[grammar = "search/facet/grammar.pest"] | ||||
| pub struct FilterParser; | ||||
| @@ -14,7 +14,6 @@ use meilisearch_tokenizer::{Analyzer, AnalyzerConfig}; | ||||
| use once_cell::sync::Lazy; | ||||
| use roaring::bitmap::RoaringBitmap; | ||||
|  | ||||
| pub(crate) use self::facet::ParserRule; | ||||
| pub use self::facet::{FacetDistribution, FacetNumberIter, FilterCondition, Operator}; | ||||
| pub use self::matching_words::MatchingWords; | ||||
| use self::query_tree::QueryTreeBuilder; | ||||
|   | ||||
		Reference in New Issue
	
	Block a user