From d59e969c164bb17b0e191c3ed1f6c325d144ee15 Mon Sep 17 00:00:00 2001 From: Louis Dureuil Date: Mon, 10 Jul 2023 16:16:34 +0200 Subject: [PATCH] Allow a comma-separated value to the `vector` argument in GET search --- meilisearch/src/routes/indexes/search.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/meilisearch/src/routes/indexes/search.rs b/meilisearch/src/routes/indexes/search.rs index 4d17adee6..3eabf61f3 100644 --- a/meilisearch/src/routes/indexes/search.rs +++ b/meilisearch/src/routes/indexes/search.rs @@ -35,7 +35,7 @@ pub struct SearchQueryGet { #[deserr(default, error = DeserrQueryParamError)] q: Option, #[deserr(default, error = DeserrQueryParamError)] - vector: Option>, + vector: Option>, #[deserr(default = Param(DEFAULT_SEARCH_OFFSET()), error = DeserrQueryParamError)] offset: Param, #[deserr(default = Param(DEFAULT_SEARCH_LIMIT()), error = DeserrQueryParamError)] @@ -88,7 +88,7 @@ impl From for SearchQuery { Self { q: other.q, - vector: other.vector, + vector: other.vector.map(CS::into_inner), offset: other.offset.0, limit: other.limit.0, page: other.page.as_deref().copied(),