Struct elasticlunr::config::SearchOptionsField [−][src]
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
Returns the “default value” for a type. Read more
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
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
This method tests for !=
.
Auto Trait Implementations
impl RefUnwindSafe for SearchOptionsField
impl Send for SearchOptionsField
impl Sync for SearchOptionsField
impl Unpin for SearchOptionsField
impl UnwindSafe for SearchOptionsField
Blanket Implementations
Mutably borrows from an owned value. Read more