pub struct TreeSearchConfig {Show 24 fields
pub max_nodes_per_doc: usize,
pub top_k_docs: usize,
pub max_concurrency: usize,
pub max_dir_files: usize,
pub max_node_chars: usize,
pub max_result_chars: usize,
pub fts_title_weight: f64,
pub fts_summary_weight: f64,
pub fts_body_weight: f64,
pub fts_code_weight: f64,
pub fts_front_matter_weight: f64,
pub search_mode: SearchMode,
pub anchor_top_k: usize,
pub max_anchor_per_doc: usize,
pub max_expansions: usize,
pub max_hops: usize,
pub max_siblings: usize,
pub min_frontier_score: f64,
pub early_stop_score: f64,
pub path_top_k: usize,
pub cjk_tokenizer: CjkTokenizerMode,
pub jieba_user_dict_paths: Vec<PathBuf>,
pub jieba_user_words: Vec<String>,
pub jieba_del_words: Vec<String>,
}Expand description
Unified configuration for TreeSearch Rust CLI.
Priority (high -> low):
- CLI flags / set_config()
- Environment variables (TREESEARCH_*)
- Built-in defaults
Fields§
§max_nodes_per_doc: usize§top_k_docs: usize§max_concurrency: usize§max_dir_files: usize§max_node_chars: usize§max_result_chars: usize§fts_title_weight: f64§fts_summary_weight: f64§fts_body_weight: f64§fts_code_weight: f64§fts_front_matter_weight: f64§search_mode: SearchMode§anchor_top_k: usize§max_anchor_per_doc: usize§max_expansions: usize§max_hops: usize§max_siblings: usize§min_frontier_score: f64§early_stop_score: f64§path_top_k: usize§cjk_tokenizer: CjkTokenizerMode§jieba_user_dict_paths: Vec<PathBuf>§jieba_user_words: Vec<String>§jieba_del_words: Vec<String>Implementations§
Trait Implementations§
Source§impl Clone for TreeSearchConfig
impl Clone for TreeSearchConfig
Source§impl Debug for TreeSearchConfig
impl Debug for TreeSearchConfig
Auto Trait Implementations§
impl Freeze for TreeSearchConfig
impl RefUnwindSafe for TreeSearchConfig
impl Send for TreeSearchConfig
impl Sync for TreeSearchConfig
impl Unpin for TreeSearchConfig
impl UnsafeUnpin for TreeSearchConfig
impl UnwindSafe for TreeSearchConfig
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
Source§fn in_current_span(self) -> Instrumented<Self> ⓘ
fn in_current_span(self) -> Instrumented<Self> ⓘ
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more