SearcherLifetimeManager.Pruner (Lucene 10.5.1 core API)
Description: declaration: package: org.apache.lucene.search, class: SearcherLifetimeManager, interface: Pruner

Package org.apache.lucene.search

# Interface SearcherLifetimeManager.Pruner

All Known Implementing Classes:
  `SearcherLifetimeManager.PruneByAge`

Enclosing class:
  `SearcherLifetimeManager`

public static interface SearcherLifetimeManager.Pruner
See `SearcherLifetimeManager.prune(org.apache.lucene.search.SearcherLifetimeManager.Pruner)`.

- ## Method Summary

  Modifier and Type
  Method
  Description
  `boolean`
  `doPrune(double ageSec, IndexSearcher searcher)`
  Return true if this searcher should be removed.

- ## Method Details

  - ### doPrune

    boolean doPrune(double ageSec, IndexSearcher searcher)
    Return true if this searcher should be removed.
    Parameters:
      `ageSec` - how much time has passed since this searcher was the current (live) searcher
      `searcher` - Searcher