Improve the DocumentsIdsIter internal

This commit is contained in:
Clément Renault 2019-10-10 13:09:29 +02:00
parent da0168bd82
commit 7b26bd88c0
No known key found for this signature in database
GPG key ID: 92ADA4E935E71FA4
3 changed files with 4 additions and 5 deletions

View file

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