mirror of
https://github.com/meilisearch/meilisearch.git
synced 2024-11-29 16:45:30 +08:00
Fix comment mistake
Co-authored-by: Tamo <tamo@meilisearch.com>
This commit is contained in:
parent
ca499a0302
commit
a9013ed683
@ -277,7 +277,7 @@ pub fn search_kind(
|
|||||||
features.check_vector("Passing `hybrid` as a query parameter")?;
|
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() {
|
if query.vector.is_none() {
|
||||||
match &query.q {
|
match &query.q {
|
||||||
Some(q) if q.trim().is_empty() => return Ok(SearchKind::KeywordOnly),
|
Some(q) if q.trim().is_empty() => return Ok(SearchKind::KeywordOnly),
|
||||||
|
Loading…
Reference in New Issue
Block a user