Show / Hide Table of Contents

    Class AssertingIndexSearcher

    Helper class that adds some extra checks to ensure correct usage of and .

    Inheritance
    System.Object
    AssertingIndexSearcher
    Namespace: Lucene.Net.Search
    Assembly: Lucene.Net.TestFramework.dll
    Syntax
    public class AssertingIndexSearcher : IndexSearcher

    Constructors

    | Improve this Doc View Source

    AssertingIndexSearcher(Random, IndexReader)

    Declaration
    public AssertingIndexSearcher(Random random, IndexReader r)
    Parameters
    Type Name Description
    Random random
    IndexReader r
    | Improve this Doc View Source

    AssertingIndexSearcher(Random, IndexReader, TaskScheduler)

    Declaration
    public AssertingIndexSearcher(Random random, IndexReader r, TaskScheduler ex)
    Parameters
    Type Name Description
    Random random
    IndexReader r
    TaskScheduler ex
    | Improve this Doc View Source

    AssertingIndexSearcher(Random, IndexReaderContext)

    Declaration
    public AssertingIndexSearcher(Random random, IndexReaderContext context)
    Parameters
    Type Name Description
    Random random
    IndexReaderContext context
    | Improve this Doc View Source

    AssertingIndexSearcher(Random, IndexReaderContext, TaskScheduler)

    Declaration
    public AssertingIndexSearcher(Random random, IndexReaderContext context, TaskScheduler ex)
    Parameters
    Type Name Description
    Random random
    IndexReaderContext context
    TaskScheduler ex

    Methods

    | Improve this Doc View Source

    CreateNormalizedWeight(Query)

    Ensures, that the returned is not normalized again, which may produce wrong scores.

    Declaration
    public override Weight CreateNormalizedWeight(Query query)
    Parameters
    Type Name Description
    Query query
    Returns
    Type Description
    Weight
    | Improve this Doc View Source

    Rewrite(Query)

    Declaration
    public override Query Rewrite(Query original)
    Parameters
    Type Name Description
    Query original
    Returns
    Type Description
    Query
    | Improve this Doc View Source

    Search(IList<AtomicReaderContext>, Weight, ICollector)

    Declaration
    protected override void Search(IList<AtomicReaderContext> leaves, Weight weight, ICollector collector)
    Parameters
    Type Name Description
    IList<AtomicReaderContext> leaves
    Weight weight
    ICollector collector
    | Improve this Doc View Source

    ToString()

    Declaration
    public override string ToString()
    Returns
    Type Description
    System.String
    | Improve this Doc View Source

    WrapFilter(Query, Filter)

    Declaration
    protected override Query WrapFilter(Query query, Filter filter)
    Parameters
    Type Name Description
    Query query
    Filter filter
    Returns
    Type Description
    Query
    • Improve this Doc
    • View Source
    Back to top Copyright © 2020 Licensed to the Apache Software Foundation (ASF)