Struct stork_lib::SearchConfig
source · pub struct SearchConfig {
pub excerpt_length: usize,
pub number_of_results: usize,
pub number_of_excerpts: usize,
}Fields§
§excerpt_length: usizeThe length, in characters, that a rendered excerpt will be. Controls excerpt merging as well as display length. Defaults to 150.
number_of_results: usizeThe maximum number of documents returned in the search results. Defaults to 10.
number_of_excerpts: usizeThe maximum number of excerpts returned for each document. Defaults to 5.
Trait Implementations§
source§impl Clone for SearchConfig
impl Clone for SearchConfig
source§fn clone(&self) -> SearchConfig
fn clone(&self) -> SearchConfig
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 SearchConfig
impl Debug for SearchConfig
source§impl Default for SearchConfig
impl Default for SearchConfig
source§impl Hash for SearchConfig
impl Hash for SearchConfig
source§impl PartialEq<SearchConfig> for SearchConfig
impl PartialEq<SearchConfig> for SearchConfig
source§fn eq(&self, other: &SearchConfig) -> bool
fn eq(&self, other: &SearchConfig) -> bool
This method tests for
self and other values to be equal, and is used
by ==.