Class SearcherLifetimeManager.PruneByAge
Simple pruner that drops any searcher older by more than the specified seconds, than the newest searcher.
Inheritance
System.Object
SearcherLifetimeManager.PruneByAge
Implements
Namespace: Lucene.Net.Search
Assembly: Lucene.Net.dll
Syntax
public sealed class PruneByAge : object, SearcherLifetimeManager.IPruner
Constructors
| Improve this Doc View SourcePruneByAge(Double)
Declaration
public PruneByAge(double maxAgeSec)
Parameters
Type | Name | Description |
---|---|---|
System. |
maxAgeSec |
Methods
| Improve this Doc View SourceDoPrune(Double, IndexSearcher)
Declaration
public bool DoPrune(double ageSec, IndexSearcher searcher)
Parameters
Type | Name | Description |
---|---|---|
System. |
ageSec | |
Index |
searcher |
Returns
Type | Description |
---|---|
System. |