diff --git a/meilisearch/src/search.rs b/meilisearch/src/search.rs index 2bc87d2ba..14ff6deff 100644 --- a/meilisearch/src/search.rs +++ b/meilisearch/src/search.rs @@ -257,11 +257,13 @@ pub struct HybridQuery { pub embedder: Option, } +#[derive(Clone)] pub enum SearchKind { KeywordOnly, SemanticOnly { embedder_name: String, embedder: Arc }, Hybrid { embedder_name: String, embedder: Arc, semantic_ratio: f32 }, } + impl SearchKind { pub(crate) fn semantic( index_scheduler: &index_scheduler::IndexScheduler,