mirror of
https://github.com/meilisearch/meilisearch.git
synced 2025-01-31 15:31:53 +08:00
stop returning the degraded boolean when a search was cutoff
This commit is contained in:
parent
ad9192fbbf
commit
038c26c118
@ -324,7 +324,8 @@ pub struct SearchResult {
|
||||
#[serde(skip_serializing_if = "Option::is_none")]
|
||||
pub facet_stats: Option<BTreeMap<String, FacetStats>>,
|
||||
|
||||
#[serde(skip_serializing_if = "std::ops::Not::not")]
|
||||
// This information is only used for analytics purposes
|
||||
#[serde(skip)]
|
||||
pub degraded: bool,
|
||||
}
|
||||
|
||||
|
@ -855,8 +855,9 @@ async fn test_degraded_score_details() {
|
||||
}),
|
||||
|response, code| {
|
||||
meili_snap::snapshot!(code, @"200 OK");
|
||||
meili_snap::snapshot!(meili_snap::json_string!(response["hits"]), @r###"
|
||||
[
|
||||
meili_snap::snapshot!(meili_snap::json_string!(response), @r###"
|
||||
{
|
||||
"hits": [
|
||||
{
|
||||
"doggos": [
|
||||
{
|
||||
@ -902,7 +903,13 @@ async fn test_degraded_score_details() {
|
||||
"skipped": 0.0
|
||||
}
|
||||
}
|
||||
]
|
||||
],
|
||||
"query": "b",
|
||||
"processingTimeMs": 0,
|
||||
"limit": 20,
|
||||
"offset": 0,
|
||||
"estimatedTotalHits": 3
|
||||
}
|
||||
"###);
|
||||
},
|
||||
)
|
||||
|
Loading…
x
Reference in New Issue
Block a user