pub struct RegexpQuery<S = Root> { /* private fields */ }Expand description
A regexp clause, with case_insensitive / flags /
max_determinized_states plus boost / name.
Implementations§
Source§impl<S> RegexpQuery<S>
impl<S> RegexpQuery<S>
Sourcepub fn case_insensitive(self) -> Self
pub fn case_insensitive(self) -> Self
Match regardless of case.
Sourcepub fn flags(self, flags: impl Into<String>) -> Self
pub fn flags(self, flags: impl Into<String>) -> Self
Enabled Lucene regex operators (e.g. "INTERSECTION|COMPLEMENT|EMPTY").
Sourcepub fn max_determinized_states(self, max: u32) -> Self
pub fn max_determinized_states(self, max: u32) -> Self
Cap on the automaton size compiled from the pattern.
Trait Implementations§
Source§impl<S> AsQuery<S> for RegexpQuery<S>
impl<S> AsQuery<S> for RegexpQuery<S>
Source§fn into_query(self) -> Option<Query<S>>
fn into_query(self) -> Option<Query<S>>
The clause this produces, or
None to contribute nothing.Source§fn and(self, other: impl AsQuery<S>) -> Query<S>where
Self: Sized,
fn and(self, other: impl AsQuery<S>) -> Query<S>where
Self: Sized,
self AND other. An absent side is the identity.Source§fn or(self, other: impl AsQuery<S>) -> Query<S>where
Self: Sized,
fn or(self, other: impl AsQuery<S>) -> Query<S>where
Self: Sized,
self OR other. An absent side is the identity.Source§impl<S: Clone> Clone for RegexpQuery<S>
impl<S: Clone> Clone for RegexpQuery<S>
Source§fn clone(&self) -> RegexpQuery<S>
fn clone(&self) -> RegexpQuery<S>
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl<S> Freeze for RegexpQuery<S>
impl<S> RefUnwindSafe for RegexpQuery<S>
impl<S> Send for RegexpQuery<S>
impl<S> Sync for RegexpQuery<S>
impl<S> Unpin for RegexpQuery<S>
impl<S> UnsafeUnpin for RegexpQuery<S>
impl<S> UnwindSafe for RegexpQuery<S>
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