Struct elasticlunr::config::SearchOptionsField
source · pub struct SearchOptionsField {
pub boost: Option<u8>,
pub bool: Option<SearchBool>,
pub expand: Option<bool>,
}
Expand description
Used to set the search configuration for a specific field.
When expand
or bool
is None
, elasticlunr.js will use the value from
the global configuration. The boost
field, if present,
increases the importance of this field when ordering search results.
Fields§
§boost: Option<u8>
§bool: Option<SearchBool>
§expand: Option<bool>
Trait Implementations§
source§impl Clone for SearchOptionsField
impl Clone for SearchOptionsField
source§fn clone(&self) -> SearchOptionsField
fn clone(&self) -> SearchOptionsField
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 SearchOptionsField
impl Debug for SearchOptionsField
source§impl Default for SearchOptionsField
impl Default for SearchOptionsField
source§fn default() -> SearchOptionsField
fn default() -> SearchOptionsField
Returns the “default value” for a type. Read more
source§impl<'de> Deserialize<'de> for SearchOptionsField
impl<'de> Deserialize<'de> for SearchOptionsField
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<SearchOptionsField> for SearchOptionsField
impl PartialEq<SearchOptionsField> for SearchOptionsField
source§fn eq(&self, other: &SearchOptionsField) -> bool
fn eq(&self, other: &SearchOptionsField) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.