Enum elasticlunr::config::SearchBool
source · pub enum SearchBool {
Or,
And,
}
Expand description
Sets which boolean model is used for searching with
multiple terms. Defaults to Or
.
- AND requires every search term to be present in results
- OR accepts results which have at least one term
Variants§
Trait Implementations§
source§impl Clone for SearchBool
impl Clone for SearchBool
source§fn clone(&self) -> SearchBool
fn clone(&self) -> SearchBool
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl Debug for SearchBool
impl Debug for SearchBool
source§impl Default for SearchBool
impl Default for SearchBool
source§impl<'de> Deserialize<'de> for SearchBool
impl<'de> Deserialize<'de> for SearchBool
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where __D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
source§impl PartialEq<SearchBool> for SearchBool
impl PartialEq<SearchBool> for SearchBool
source§fn eq(&self, other: &SearchBool) -> bool
fn eq(&self, other: &SearchBool) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.