Fix comment mistake

Co-authored-by: Tamo <tamo@meilisearch.com>
This commit is contained in:
Louis Dureuil 2024-04-04 17:21:47 +02:00 committed by GitHub
parent ca499a0302
commit a9013ed683
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -277,7 +277,7 @@ pub fn search_kind(
features.check_vector("Passing `hybrid` as a query parameter")?;
}
// regardless of anything, always do a semantic search when we don't have a vector and the query is whitespace or missing
// regardless of anything, always do a keyword search when we don't have a vector and the query is whitespace or missing
if query.vector.is_none() {
match &query.q {
Some(q) if q.trim().is_empty() => return Ok(SearchKind::KeywordOnly),