Show / Hide Table of Contents

    Class FilteredQuery.FilterStrategy

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

    Inheritance
    System.Object
    FilteredQuery.FilterStrategy
    FilteredQuery.RandomAccessFilterStrategy
    Namespace: Lucene.Net.Search
    Assembly: Lucene.Net.dll
    Syntax
    public abstract class FilterStrategy : object

    Methods

    | Improve this Doc View Source

    FilteredBulkScorer(AtomicReaderContext, Weight, Boolean, 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 FilteredQuery Weight to create the filtered scorer.

    System.Boolean scoreDocsInOrder

    true to score docs in order

    DocIdSet docIdSet

    the filter DocIdSet to apply

    Returns
    Type Description
    BulkScorer

    a filtered top scorer

    | Improve this Doc View Source

    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 FilteredQuery Weight to create the filtered scorer.

    DocIdSet docIdSet

    the filter DocIdSet to apply

    Returns
    Type Description
    Scorer

    a filtered scorer

    • Improve this Doc
    • View Source
    Back to top Copyright © 2020 Licensed to the Apache Software Foundation (ASF)