mirror of
https://github.com/meilisearch/MeiliSearch
synced 2024-11-26 14:54:27 +01:00
Breaking: Remove vector from SearchResult
This commit is contained in:
parent
928e6e4c05
commit
190933f6e1
@ -758,7 +758,6 @@ impl SearchAggregator {
|
|||||||
let SearchResult {
|
let SearchResult {
|
||||||
hits: _,
|
hits: _,
|
||||||
query: _,
|
query: _,
|
||||||
vector: _,
|
|
||||||
processing_time_ms,
|
processing_time_ms,
|
||||||
hits_info: _,
|
hits_info: _,
|
||||||
facet_distribution: _,
|
facet_distribution: _,
|
||||||
|
@ -314,8 +314,6 @@ pub struct SearchHit {
|
|||||||
pub struct SearchResult {
|
pub struct SearchResult {
|
||||||
pub hits: Vec<SearchHit>,
|
pub hits: Vec<SearchHit>,
|
||||||
pub query: String,
|
pub query: String,
|
||||||
#[serde(skip_serializing_if = "Option::is_none")]
|
|
||||||
pub vector: Option<Vec<f32>>,
|
|
||||||
pub processing_time_ms: u128,
|
pub processing_time_ms: u128,
|
||||||
#[serde(flatten)]
|
#[serde(flatten)]
|
||||||
pub hits_info: HitsInfo,
|
pub hits_info: HitsInfo,
|
||||||
@ -713,7 +711,6 @@ pub fn perform_search(
|
|||||||
hits: documents,
|
hits: documents,
|
||||||
hits_info,
|
hits_info,
|
||||||
query: query.q.unwrap_or_default(),
|
query: query.q.unwrap_or_default(),
|
||||||
vector: query.vector,
|
|
||||||
processing_time_ms: before_search.elapsed().as_millis(),
|
processing_time_ms: before_search.elapsed().as_millis(),
|
||||||
facet_distribution,
|
facet_distribution,
|
||||||
facet_stats,
|
facet_stats,
|
||||||
|
Loading…
Reference in New Issue
Block a user