revert get document method

This commit is contained in:
Quentin de Quelen
2020-04-16 18:37:54 +02:00
committed by qdequele
parent ff3149f6fa
commit 4bd7e46ba6
5 changed files with 19 additions and 19 deletions

View File

@ -257,7 +257,7 @@ impl<'a> SearchBuilder<'a> {
for doc in docs {
let mut document: IndexMap<String, Value> = self
.index
.document(reader, Some(all_attributes.clone()), doc.id)
.document(reader, Some(&all_attributes), doc.id)
.map_err(|e| Error::RetrieveDocument(doc.id.0, e.to_string()))?
.ok_or(Error::DocumentNotFound(doc.id.0))?;