Fork me on GitHub
  • API

    Show / Hide Table of Contents

    Class FilteredQuery.FilterStrategy

    Abstract class that defines how the filter (DocIdSet) applied during document collection.

    Inheritance
    object
    FilteredQuery.FilterStrategy
    FilteredQuery.RandomAccessFilterStrategy
    Inherited Members
    object.Equals(object)
    object.Equals(object, object)
    object.GetHashCode()
    object.GetType()
    object.MemberwiseClone()
    object.ReferenceEquals(object, object)
    object.ToString()
    Namespace: Lucene.Net.Search
    Assembly: Lucene.Net.dll
    Syntax
    public abstract class FilteredQuery.FilterStrategy

    Methods

    FilteredBulkScorer(AtomicReaderContext, Weight, bool, DocIdSet)

    Returns a filtered BulkScorer based on this strategy. this is an optional method: the default implementation just calls FilteredScorer(AtomicReaderContext, Weight, DocIdSet) and wraps that into a BulkScorer.

    Declaration
    public virtual BulkScorer FilteredBulkScorer(AtomicReaderContext context, Weight weight, bool scoreDocsInOrder, DocIdSet docIdSet)
    Parameters
    Type Name Description
    AtomicReaderContext context

    the AtomicReaderContext for which to return the Scorer.

    Weight weight

    the FilteredQueryWeight to create the filtered scorer.

    bool scoreDocsInOrder

    true to score docs in order

    DocIdSet docIdSet

    the filter DocIdSet to apply

    Returns
    Type Description
    BulkScorer

    a filtered top scorer

    FilteredScorer(AtomicReaderContext, Weight, DocIdSet)

    Returns a filtered Scorer based on this strategy.

    Declaration
    public abstract Scorer FilteredScorer(AtomicReaderContext context, Weight weight, DocIdSet docIdSet)
    Parameters
    Type Name Description
    AtomicReaderContext context

    the AtomicReaderContext for which to return the Scorer.

    Weight weight

    the FilteredQueryWeight to create the filtered scorer.

    DocIdSet docIdSet

    the filter DocIdSet to apply

    Returns
    Type Description
    Scorer

    a filtered scorer

    Exceptions
    Type Condition
    IOException

    if an IOException occurs

    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.