Fix memory consuption in word pair proximity extractor

This commit is contained in:
many 2021-08-30 13:43:41 +02:00
parent 9452fabfb2
commit b3a22f31f6
No known key found for this signature in database
GPG Key ID: 2CEF23B75189EACA

View File

@ -29,7 +29,7 @@ pub fn extract_word_pair_proximity_docids<R: io::Read>(
indexer.chunk_compression_type, indexer.chunk_compression_type,
indexer.chunk_compression_level, indexer.chunk_compression_level,
indexer.max_nb_chunks, indexer.max_nb_chunks,
max_memory, max_memory.map(|m| m / 2),
); );
let mut number_of_documents = 0; let mut number_of_documents = 0;