Show / Hide Table of Contents

    Class BulkScorer

    This class is used to score a range of documents at once, and is returned by GetBulkScorer(AtomicReaderContext, Boolean, IBits). Only queries that have a more optimized means of scoring across a range of documents need to override this. Otherwise, a default implementation is wrapped around the Scorer returned by GetScorer(AtomicReaderContext, IBits).

    Inheritance
    System.Object
    BulkScorer
    ConstantScoreQuery.ConstantBulkScorer
    Namespace: Lucene.Net.Search
    Assembly: Lucene.Net.dll
    Syntax
    public abstract class BulkScorer : object

    Methods

    | Improve this Doc View Source

    Score(ICollector)

    Scores and collects all matching documents.

    Declaration
    public virtual void Score(ICollector collector)
    Parameters
    Type Name Description
    ICollector collector

    The collector to which all matching documents are passed.

    | Improve this Doc View Source

    Score(ICollector, Int32)

    Collects matching documents in a range.

    Declaration
    public abstract bool Score(ICollector collector, int max)
    Parameters
    Type Name Description
    ICollector collector

    The collector to which all matching documents are passed.

    System.Int32 max

    Score up to, but not including, this doc

    Returns
    Type Description
    System.Boolean

    true if more matching documents may remain.

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