mirror of
https://github.com/meilisearch/MeiliSearch
synced 2025-07-15 13:58:36 +02:00
Improve composite test
This commit is contained in:
parent
2f1be0ff86
commit
1ae47bec77
1 changed files with 22 additions and 0 deletions
|
@ -2261,4 +2261,26 @@ async fn composite() {
|
||||||
"semanticHitCount": 1
|
"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
|
||||||
|
}
|
||||||
|
"#);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue