1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20
mod parser; mod matcher; /// The main interface with this library is via Matcher objects. /// /// # Examples: /// /// ``` rust /// use bqrs::Matcher; /// /// // this matcher matches any text that contains the words /// // 'these', 'those' and either 'this' or 'that' /// let myquery = Matcher::from("(\"this\" | \"that\") & \"these\" & \"those\"").unwrap(); /// assert!(myquery.query("this these those")); /// assert!(myquery.query("that these those")); /// /// // doesn't contain 'those' /// assert!(!myquery.query("this that these")); /// ``` pub use matcher::Matcher;