pub struct SearchConfig {Show 16 fields
pub default_limit: usize,
pub max_limit: usize,
pub enable_analytics: bool,
pub timeout_ms: u64,
pub enable_fuzzy_search: bool,
pub fuzziness: f32,
pub minimum_should_match: String,
pub enable_highlighting: bool,
pub highlight_pre_tag: String,
pub highlight_post_tag: String,
pub enable_snippets: bool,
pub snippet_length: usize,
pub enable_suggestions: bool,
pub suggestion_limit: usize,
pub enable_geo_search: bool,
pub default_crs: String,
}Expand description
Search configuration
Fields§
§default_limit: usizeDefault search limit
max_limit: usizeMaximum search limit
enable_analytics: boolEnable search analytics
timeout_ms: u64Search timeout in milliseconds
enable_fuzzy_search: boolEnable fuzzy search by default
fuzziness: f32Fuzziness level (0.0 to 1.0)
minimum_should_match: StringMinimum should match for multi-term queries
enable_highlighting: boolEnable highlighting
highlight_pre_tag: StringHighlight pre tag
highlight_post_tag: StringHighlight post tag
enable_snippets: boolEnable snippet extraction
snippet_length: usizeSnippet length
enable_suggestions: boolEnable search suggestions
suggestion_limit: usizeSuggestion limit
enable_geo_search: boolEnable geospatial search
default_crs: StringDefault coordinate reference system
Trait Implementations§
Source§impl Clone for SearchConfig
impl Clone for SearchConfig
Source§impl Debug for SearchConfig
impl Debug for SearchConfig
Auto Trait Implementations§
impl Freeze for SearchConfig
impl RefUnwindSafe for SearchConfig
impl Send for SearchConfig
impl Sync for SearchConfig
impl Unpin for SearchConfig
impl UnsafeUnpin for SearchConfig
impl UnwindSafe for SearchConfig
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