meilisearch compatible primary key inference

This commit is contained in:
Marin Postma
2021-05-06 21:16:40 +02:00
parent 313c362461
commit eeb0c70ea2
2 changed files with 7 additions and 3 deletions

View File

@ -329,7 +329,7 @@ impl<'t, 'u, 'i, 'a> IndexDocuments<'t, 'u, 'i, 'a> {
let mut reader = BufReader::new(reader);
reader.fill_buf()?;
// Early return when there are no document to add
// Early return when there is no document to add
if reader.buffer().is_empty() {
return Ok(DocumentAdditionResult {
nb_documents: 0,