pub struct SearchOptions {Show 13 fields
pub fuzzy: bool,
pub fuzziness: f32,
pub minimum_should_match: String,
pub highlight: bool,
pub highlight_config: Option<HighlightConfig>,
pub snippets: bool,
pub snippet_length: usize,
pub suggestions: bool,
pub suggestion_limit: usize,
pub boost_query: Option<Box<SearchQuery>>,
pub timeout_ms: Option<u64>,
pub track_total_hits: bool,
pub explain: bool,
}Expand description
Search options
Fields§
§fuzzy: boolEnable fuzzy search
fuzziness: f32Fuzziness level
minimum_should_match: StringMinimum should match
highlight: boolEnable highlighting
highlight_config: Option<HighlightConfig>Highlight configuration
snippets: boolEnable snippets
snippet_length: usizeSnippet length
suggestions: boolEnable suggestions
suggestion_limit: usizeSuggestion limit
boost_query: Option<Box<SearchQuery>>Boost query
timeout_ms: Option<u64>Search timeout in milliseconds
track_total_hits: boolTrack total hits
explain: boolExplain scores
Trait Implementations§
Source§impl Clone for SearchOptions
impl Clone for SearchOptions
Source§impl Debug for SearchOptions
impl Debug for SearchOptions
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
Auto Trait Implementations§
impl Freeze for SearchOptions
impl RefUnwindSafe for SearchOptions
impl Send for SearchOptions
impl Sync for SearchOptions
impl Unpin for SearchOptions
impl UnsafeUnpin for SearchOptions
impl UnwindSafe for SearchOptions
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