This commit is contained in:
PSeitz
2022-02-21 15:15:58 +01:00
committed by GitHub
parent d37633e034
commit 1232af7928
4 changed files with 6 additions and 6 deletions

View File

@@ -122,7 +122,7 @@ impl IndexReaderBuilder {
/// Sets the number of [Searcher] to pool.
///
/// See [Self::searcher()].
/// See [IndexReader::searcher()].
#[must_use]
pub fn num_searchers(mut self, num_searchers: usize) -> IndexReaderBuilder {
self.num_searchers = num_searchers;

View File

@@ -10,7 +10,7 @@ pub const GC_INTERVAL: Duration = Duration::from_secs(1);
/// `Warmer` can be used to maintain segment-level state e.g. caches.
///
/// They must be registered with the [IndexReaderBuilder].
/// They must be registered with the [super::IndexReaderBuilder].
pub trait Warmer: Sync + Send {
/// Perform any warming work using the provided [Searcher].
fn warm(&self, searcher: &Searcher) -> crate::Result<()>;