Make SearchKind cloneable

This commit is contained in:
Louis Dureuil 2024-07-11 16:33:24 +02:00
parent b9982587d4
commit edab4e75b0
No known key found for this signature in database

View File

@ -257,11 +257,13 @@ pub struct HybridQuery {
pub embedder: Option<String>,
}
#[derive(Clone)]
pub enum SearchKind {
KeywordOnly,
SemanticOnly { embedder_name: String, embedder: Arc<Embedder> },
Hybrid { embedder_name: String, embedder: Arc<Embedder>, semantic_ratio: f32 },
}
impl SearchKind {
pub(crate) fn semantic(
index_scheduler: &index_scheduler::IndexScheduler,