From 190933f6e1986571056b5147a5189c8d53dcb972 Mon Sep 17 00:00:00 2001 From: Louis Dureuil Date: Wed, 27 Mar 2024 15:40:02 +0100 Subject: [PATCH] Breaking: Remove vector from SearchResult --- meilisearch/src/analytics/segment_analytics.rs | 1 - meilisearch/src/search.rs | 3 --- 2 files changed, 4 deletions(-) diff --git a/meilisearch/src/analytics/segment_analytics.rs b/meilisearch/src/analytics/segment_analytics.rs index 4a0ef5b35..fcf4d9144 100644 --- a/meilisearch/src/analytics/segment_analytics.rs +++ b/meilisearch/src/analytics/segment_analytics.rs @@ -758,7 +758,6 @@ impl SearchAggregator { let SearchResult { hits: _, query: _, - vector: _, processing_time_ms, hits_info: _, facet_distribution: _, diff --git a/meilisearch/src/search.rs b/meilisearch/src/search.rs index 2e0df18ad..a1aa37779 100644 --- a/meilisearch/src/search.rs +++ b/meilisearch/src/search.rs @@ -314,8 +314,6 @@ pub struct SearchHit { pub struct SearchResult { pub hits: Vec, pub query: String, - #[serde(skip_serializing_if = "Option::is_none")] - pub vector: Option>, pub processing_time_ms: u128, #[serde(flatten)] pub hits_info: HitsInfo, @@ -713,7 +711,6 @@ pub fn perform_search( hits: documents, hits_info, query: query.q.unwrap_or_default(), - vector: query.vector, processing_time_ms: before_search.elapsed().as_millis(), facet_distribution, facet_stats,