mirror of
https://github.com/meilisearch/meilisearch.git
synced 2025-07-26 16:21:07 +00:00
Improve composite test
This commit is contained in:
@ -2261,4 +2261,26 @@ async fn composite() {
|
||||
"semanticHitCount": 1
|
||||
}
|
||||
"#);
|
||||
|
||||
let (value, code) = index.search_post(
|
||||
json!({"q": "bulldog", "hybrid": {"semanticRatio": 1.0, "embedder": "rest"}, "limit": 1}
|
||||
)).await;
|
||||
snapshot!(code, @"200 OK");
|
||||
snapshot!(value, @r#"
|
||||
{
|
||||
"hits": [
|
||||
{
|
||||
"id": 3,
|
||||
"name": "dustin",
|
||||
"breed": "bulldog"
|
||||
}
|
||||
],
|
||||
"query": "bulldog",
|
||||
"processingTimeMs": "[duration]",
|
||||
"limit": 1,
|
||||
"offset": 0,
|
||||
"estimatedTotalHits": 4,
|
||||
"semanticHitCount": 1
|
||||
}
|
||||
"#);
|
||||
}
|
||||
|
Reference in New Issue
Block a user