mirror of
https://github.com/meilisearch/MeiliSearch
synced 2024-12-02 01:25:45 +01:00
Merge #5063
5063: Fix pagination when embedding fails r=Kerollmops a=dureuill # Pull Request ## Related issue Fixes https://github.com/meilisearch/meilisearch/issues/5045 ## What does this PR do? - Use `return_keyword_results` function when embedding fails Co-authored-by: Louis Dureuil <louis@meilisearch.com>
This commit is contained in:
commit
aae0dc715d
@ -207,7 +207,11 @@ impl<'a> Search<'a> {
|
||||
Ok(embedding) => embedding,
|
||||
Err(error) => {
|
||||
tracing::error!(error=%error, "Embedding failed");
|
||||
return Ok((keyword_results, Some(0)));
|
||||
return Ok(return_keyword_results(
|
||||
self.limit,
|
||||
self.offset,
|
||||
keyword_results,
|
||||
));
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user