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
    System.Object
    FilteredQuery.FilterStrategy
    FilteredQuery.RandomAccessFilterStrategy
    Inherited Members
    System.Object.Equals(System.Object)
    System.Object.Equals(System.Object, System.Object)
    System.Object.GetHashCode()
    System.Object.GetType()
    System.Object.MemberwiseClone()
    System.Object.ReferenceEquals(System.Object, System.Object)
    System.Object.ToString()
    Namespace: Lucene.Net.Search
    Assembly: Lucene.Net.dll
    Syntax
    public abstract class FilterStrategy

    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

    Exceptions
    Type Condition
    System.IO.IOException

    if an System.IO.IOException occurs

    • Improve this Doc
    • View Source
    Back to top Copyright © 2021 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.