mirror of
				https://github.com/meilisearch/meilisearch.git
				synced 2025-11-04 01:46:28 +00:00 
			
		
		
		
	Use return_keyword_results function instead of returning raw keyword results when the embedder is broken
				
					
				
			This commit is contained in:
		@@ -205,7 +205,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,
 | 
			
		||||
                        ));
 | 
			
		||||
                    }
 | 
			
		||||
                }
 | 
			
		||||
            }
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user