From edab4e75b007d4e48b0102c0a012031d928ba5d8 Mon Sep 17 00:00:00 2001 From: Louis Dureuil Date: Thu, 11 Jul 2024 16:33:24 +0200 Subject: [PATCH] Make SearchKind cloneable --- meilisearch/src/search.rs | 2 ++ 1 file changed, 2 insertions(+) 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,