pub struct HybridSearchParams {
pub query_text: String,
pub query_vec: Option<Vec<f32>>,
pub max_results: usize,
pub event_types: Vec<EventType>,
pub text_weight: f32,
pub vector_weight: f32,
pub rrf_k: u32,
}Expand description
Parameters for hybrid BM25 + vector search.
Fields§
§query_text: StringText query for BM25 component.
query_vec: Option<Vec<f32>>Feature vector for similarity component. If None, runs BM25-only.
max_results: usizeMaximum number of final results.
event_types: Vec<EventType>Filter by event type(s). Empty = all types.
text_weight: f32Weight for BM25 component (0.0 to 1.0, default: 0.5).
vector_weight: f32Weight for vector component (0.0 to 1.0, default: 0.5).
rrf_k: u32RRF constant k (default: 60).
Auto Trait Implementations§
impl Freeze for HybridSearchParams
impl RefUnwindSafe for HybridSearchParams
impl Send for HybridSearchParams
impl Sync for HybridSearchParams
impl Unpin for HybridSearchParams
impl UnsafeUnpin for HybridSearchParams
impl UnwindSafe for HybridSearchParams
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