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

@ -381,7 +381,7 @@ fn search_command(command: SearchCommand, database: Database) -> Result<(), Box<
.sort_unstable_by_key(|m| (m.char_index, m.char_length));
let start_retrieve = Instant::now();
let result = index.document::<Document, _>(&reader, Some(fields.clone()), doc.id);
let result = index.document::<Document>(&reader, Some(&fields), doc.id);
retrieve_duration += start_retrieve.elapsed();
match result {