Skip to content

Commit

Permalink
allow set doc store cache size on IndexReaderBuilder (#1407)
Browse files Browse the repository at this point in the history
  • Loading branch information
PSeitz committed Jul 6, 2022
1 parent 6c2d973 commit 2406d92
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions src/reader/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -124,6 +124,15 @@ impl IndexReaderBuilder {
self
}

/// Sets the cache size of the doc store readers.
///
/// The doc store readers cache by default DOCSTORE_CACHE_CAPACITY(100) decompressed blocks.
#[must_use]
pub fn doc_store_cache_size(mut self, doc_store_cache_size: usize) -> IndexReaderBuilder {
self.doc_store_cache_size = doc_store_cache_size;
self
}

/// Sets the number of [Searcher] to pool.
///
/// See [IndexReader::searcher()].
Expand Down

0 comments on commit 2406d92

Please sign in to comment.