From 864ad2a23c891496a512fed195ee4f4d10dd7761 Mon Sep 17 00:00:00 2001 From: Louis Dureuil Date: Mon, 26 Jun 2023 16:36:01 +0200 Subject: [PATCH] Check that vector store feature is enabled --- meilisearch/src/search.rs | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/meilisearch/src/search.rs b/meilisearch/src/search.rs index fe4b10e59..8f2d48650 100644 --- a/meilisearch/src/search.rs +++ b/meilisearch/src/search.rs @@ -326,6 +326,10 @@ pub fn perform_search( features.check_score_details()?; } + if query.vector.is_some() { + features.check_vector()?; + } + // compute the offset on the limit depending on the pagination mode. let (offset, limit) = if is_finite_pagination { let limit = query.hits_per_page.unwrap_or_else(DEFAULT_SEARCH_LIMIT);