Class SearcherLifetimeManager.PruneByAge
Simple pruner that drops any searcher older by more than the specified seconds, than the newest searcher.
Implements
Inherited Members
Namespace: Lucene.Net.Search
Assembly: Lucene.Net.dll
Syntax
public sealed class SearcherLifetimeManager.PruneByAge : SearcherLifetimeManager.IPruner
Constructors
PruneByAge(double)
Simple pruner that drops any searcher older by more than the specified seconds, than the newest searcher.
Declaration
public PruneByAge(double maxAgeSec)
Parameters
| Type | Name | Description |
|---|---|---|
| double | maxAgeSec |
Methods
DoPrune(double, IndexSearcher)
Return true if this searcher should be removed.
Declaration
public bool DoPrune(double ageSec, IndexSearcher searcher)
Parameters
| Type | Name | Description |
|---|---|---|
| double | ageSec | How much time has passed since this searcher was the current (live) searcher |
| IndexSearcher | searcher | Searcher |
Returns
| Type | Description |
|---|---|
| bool |