public static final class SearcherLifetimeManager.PruneByAge extends Object implements SearcherLifetimeManager.Pruner
Constructor and Description |
---|
PruneByAge(double maxAgeSec) |
Modifier and Type | Method and Description |
---|---|
boolean |
doPrune(double ageSec,
IndexSearcher searcher)
Return true if this searcher should be removed.
|
public boolean doPrune(double ageSec, IndexSearcher searcher)
SearcherLifetimeManager.Pruner
doPrune
in interface SearcherLifetimeManager.Pruner
ageSec
- how much time has passed since this
searcher was the current (live) searchersearcher
- SearcherCopyright © 2000-2016 Apache Software Foundation. All Rights Reserved.