Enum elasticsearch_dsl::search::queries::params::RegexpFlag
source · pub enum RegexpFlag {
All,
Complement,
Interval,
Intersection,
Anystring,
}Expand description
You can use the flags parameter to enable more optional operators for Lucene’s regular expression engine.
Variants§
All
Enables all optional operators.
Complement
Enables the ~ operator. You can use ~ to negate the shortest following pattern.
For example:
a~bc # matches 'adc' and 'aec' but not 'abc'
Interval
Enables the <> operators. You can use <> to match a numeric range. For example:
foo<1-100> # matches 'foo1', 'foo2' ... 'foo99', 'foo100'
foo<01-100> # matches 'foo01', 'foo02' ... 'foo99', 'foo100'
Intersection
Enables the & operator, which acts as an AND operator. The match will succeed if patterns
on both the left side AND the right side matches. For example:
aaa.+&.+bbb # matches 'aaabbb'
Anystring
Enables the @ operator. You can use @ to match any entire string.
You can combine the @ operator with & and ~ operators to create an
“everything except” logic. For example:
@&~(abc.+) # matches everything except terms beginning with 'abc'
Trait Implementations§
source§impl Clone for RegexpFlag
impl Clone for RegexpFlag
source§fn clone(&self) -> RegexpFlag
fn clone(&self) -> RegexpFlag
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moresource§impl Debug for RegexpFlag
impl Debug for RegexpFlag
source§impl Display for RegexpFlag
impl Display for RegexpFlag
source§impl From<RegexpFlag> for &'static str
impl From<RegexpFlag> for &'static str
source§fn from(value: RegexpFlag) -> Self
fn from(value: RegexpFlag) -> Self
source§impl From<RegexpFlag> for String
impl From<RegexpFlag> for String
source§fn from(value: RegexpFlag) -> Self
fn from(value: RegexpFlag) -> Self
source§impl Ord for RegexpFlag
impl Ord for RegexpFlag
source§fn cmp(&self, other: &RegexpFlag) -> Ordering
fn cmp(&self, other: &RegexpFlag) -> Ordering
1.21.0 · source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
source§impl PartialEq for RegexpFlag
impl PartialEq for RegexpFlag
source§impl PartialOrd for RegexpFlag
impl PartialOrd for RegexpFlag
source§impl Serialize for RegexpFlag
impl Serialize for RegexpFlag
impl Copy for RegexpFlag
impl Eq for RegexpFlag
impl StructuralPartialEq for RegexpFlag
Auto Trait Implementations§
impl Freeze for RegexpFlag
impl RefUnwindSafe for RegexpFlag
impl Send for RegexpFlag
impl Sync for RegexpFlag
impl Unpin for RegexpFlag
impl UnwindSafe for RegexpFlag
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
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§default unsafe fn clone_to_uninit(&self, dst: *mut T)
default unsafe fn clone_to_uninit(&self, dst: *mut T)
clone_to_uninit)source§impl<T> CloneToUninit for Twhere
T: Copy,
impl<T> CloneToUninit for Twhere
T: Copy,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
clone_to_uninit)