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 for SearchOptionsField
impl PartialEq for SearchOptionsField
Source§impl Serialize for SearchOptionsField
impl Serialize for SearchOptionsField
impl Copy for SearchOptionsField
impl Eq for SearchOptionsField
impl StructuralPartialEq for SearchOptionsField
Auto Trait Implementations§
impl Freeze for SearchOptionsField
impl RefUnwindSafe for SearchOptionsField
impl Send for SearchOptionsField
impl Sync for SearchOptionsField
impl Unpin for SearchOptionsField
impl UnwindSafe for SearchOptionsField
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
Mutably borrows from an owned value. Read more