Fork me on GitHub
  • API

    Show / Hide Table of Contents

    Class SearcherLifetimeManager.PruneByAge

    Simple pruner that drops any searcher older by more than the specified seconds, than the newest searcher.

    Inheritance
    object
    SearcherLifetimeManager.PruneByAge
    Implements
    SearcherLifetimeManager.IPruner
    Inherited Members
    object.Equals(object)
    object.Equals(object, object)
    object.GetHashCode()
    object.GetType()
    object.ReferenceEquals(object, object)
    object.ToString()
    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

    Implements

    SearcherLifetimeManager.IPruner
    Back to top Copyright © 2024 The Apache Software Foundation, Licensed under the Apache License, Version 2.0
    Apache Lucene.Net, Lucene.Net, Apache, the Apache feather logo, and the Apache Lucene.Net project logo are trademarks of The Apache Software Foundation.
    All other marks mentioned may be trademarks or registered trademarks of their respective owners.