Struct elasticlunr::config::SearchOptions
source · pub struct SearchOptions {
pub bool: SearchBool,
pub expand: bool,
pub fields: BTreeMap<String, SearchOptionsField>,
}
Expand description
The search configuration map which is passed to the
elasticlunr.js Index.search()
function.
Key | Default |
---|---|
bool | OR |
expand | false |
Fields§
§bool: SearchBool
§expand: bool
§fields: BTreeMap<String, SearchOptionsField>
Trait Implementations§
source§impl Clone for SearchOptions
impl Clone for SearchOptions
source§fn clone(&self) -> SearchOptions
fn clone(&self) -> SearchOptions
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 SearchOptions
impl Debug for SearchOptions
source§impl Default for SearchOptions
impl Default for SearchOptions
source§fn default() -> SearchOptions
fn default() -> SearchOptions
Returns the “default value” for a type. Read more
source§impl<'de> Deserialize<'de> for SearchOptions
impl<'de> Deserialize<'de> for SearchOptions
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<SearchOptions> for SearchOptions
impl PartialEq<SearchOptions> for SearchOptions
source§fn eq(&self, other: &SearchOptions) -> bool
fn eq(&self, other: &SearchOptions) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.