pub struct QueryDialect {
pub name: &'static str,
pub and_tokens: &'static [&'static str],
pub or_tokens: &'static [&'static str],
pub not_tokens: &'static [&'static str],
pub implicit_and: bool,
}Expand description
Boolean-syntax configuration for a query dialect. The reverse analogue of
the boolean-operator half of TextQueryConfig: a
pure data table that drives the shared tokenizer and boolean parser.
Leaf syntax (field predicates, ranges, quoting, wildcards) is dialect
specific and handled by Frontend::parse_atom, not here.
Fields§
§name: &'static strHuman-readable dialect name ("lucene").
and_tokens: &'static [&'static str]Tokens that mean logical AND (e.g. ["AND", "&&"]).
or_tokens: &'static [&'static str]Tokens that mean logical OR (e.g. ["OR", "||"]).
not_tokens: &'static [&'static str]Tokens (and prefixes) that mean logical NOT (e.g. ["NOT", "!"]).
implicit_and: boolWhether adjacent terms with no explicit operator are ANDed (true) or
ORed (false).
Trait Implementations§
Source§impl Clone for QueryDialect
impl Clone for QueryDialect
impl Copy for QueryDialect
Auto Trait Implementations§
impl Freeze for QueryDialect
impl RefUnwindSafe for QueryDialect
impl Send for QueryDialect
impl Sync for QueryDialect
impl Unpin for QueryDialect
impl UnsafeUnpin for QueryDialect
impl UnwindSafe for QueryDialect
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more