pub struct QueryOptions {
pub limit: usize,
pub type_boosts: Vec<(NodeType, f32)>,
pub include_types: Vec<NodeType>,
pub exclude_types: Vec<NodeType>,
pub no_symbols: bool,
}Expand description
Options for Database::search_ranked / crate::Brain::query_ranked.
Fields§
§limit: usizeMaximum hits to return after ranking and deduplication.
type_boosts: Vec<(NodeType, f32)>Multiplicative boosts applied when node.node_type matches.
Defaults slightly prefer goals/ADRs/edge cases over raw symbols.
include_types: Vec<NodeType>If non-empty, only include these node types.
exclude_types: Vec<NodeType>Exclude these node types after ranking (applied after include filter).
no_symbols: boolConvenience: exclude NodeType::Symbol (typical for human CLI search).
Implementations§
Source§impl QueryOptions
impl QueryOptions
Trait Implementations§
Source§impl Clone for QueryOptions
impl Clone for QueryOptions
Source§fn clone(&self) -> QueryOptions
fn clone(&self) -> QueryOptions
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 QueryOptions
impl Debug for QueryOptions
Auto Trait Implementations§
impl Freeze for QueryOptions
impl RefUnwindSafe for QueryOptions
impl Send for QueryOptions
impl Sync for QueryOptions
impl Unpin for QueryOptions
impl UnsafeUnpin for QueryOptions
impl UnwindSafe for QueryOptions
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