Show / Hide Table of Contents

    Class ExplanationAsserter

    Asserts that the score explanation for every document matching a query corresponds with the true score.

    NOTE: this HitCollector should only be used with the and specified at when it is constructed.

    Inheritance
    System.Object
    ExplanationAsserter
    Namespace: Lucene.Net.Search
    Assembly: Lucene.Net.TestFramework.dll
    Syntax
    public class ExplanationAsserter : ICollector

    Constructors

    | Improve this Doc View Source

    ExplanationAsserter(Query, String, IndexSearcher)

    Constructs an instance which does shallow tests on the Explanation

    Declaration
    public ExplanationAsserter(Query q, string defaultFieldName, IndexSearcher s)
    Parameters
    Type Name Description
    Query q
    System.String defaultFieldName
    IndexSearcher s
    | Improve this Doc View Source

    ExplanationAsserter(Query, String, IndexSearcher, Boolean)

    Declaration
    public ExplanationAsserter(Query q, string defaultFieldName, IndexSearcher s, bool deep)
    Parameters
    Type Name Description
    Query q
    System.String defaultFieldName
    IndexSearcher s
    System.Boolean deep

    Properties

    | Improve this Doc View Source

    AcceptsDocsOutOfOrder

    Declaration
    public virtual bool AcceptsDocsOutOfOrder { get; }
    Property Value
    Type Description
    System.Boolean

    Methods

    | Improve this Doc View Source

    Collect(Int32)

    Declaration
    public virtual void Collect(int doc)
    Parameters
    Type Name Description
    System.Int32 doc
    | Improve this Doc View Source

    SetNextReader(AtomicReaderContext)

    Declaration
    public virtual void SetNextReader(AtomicReaderContext context)
    Parameters
    Type Name Description
    AtomicReaderContext context
    | Improve this Doc View Source

    SetScorer(Scorer)

    Declaration
    public virtual void SetScorer(Scorer scorer)
    Parameters
    Type Name Description
    Scorer scorer

    See Also

    VerifyExplanation(String, Int32, Single, Boolean, Explanation)
    • Improve this Doc
    • View Source
    Back to top Copyright © 2020 Licensed to the Apache Software Foundation (ASF)