Fork me on GitHub
  • API

    Show / Hide Table of Contents

    Class SortRescorer

    A Rescorer that re-sorts according to a provided Sort.

    Inheritance
    object
    Rescorer
    SortRescorer
    Inherited Members
    object.Equals(object)
    object.Equals(object, object)
    object.GetHashCode()
    object.GetType()
    object.MemberwiseClone()
    object.ReferenceEquals(object, object)
    object.ToString()
    Namespace: Lucene.Net.Search
    Assembly: Lucene.Net.dll
    Syntax
    public class SortRescorer : Rescorer

    Constructors

    SortRescorer(Sort)

    Sole constructor.

    Declaration
    public SortRescorer(Sort sort)
    Parameters
    Type Name Description
    Sort sort

    Methods

    Explain(IndexSearcher, Explanation, int)

    Explains how the score for the specified document was computed.

    Declaration
    public override Explanation Explain(IndexSearcher searcher, Explanation firstPassExplanation, int docID)
    Parameters
    Type Name Description
    IndexSearcher searcher
    Explanation firstPassExplanation
    int docID
    Returns
    Type Description
    Explanation
    Overrides
    Rescorer.Explain(IndexSearcher, Explanation, int)

    Rescore(IndexSearcher, TopDocs, int)

    Rescore an initial first-pass TopDocs.

    Declaration
    public override TopDocs Rescore(IndexSearcher searcher, TopDocs firstPassTopDocs, int topN)
    Parameters
    Type Name Description
    IndexSearcher searcher

    IndexSearcher used to produce the first pass topDocs

    TopDocs firstPassTopDocs

    Hits from the first pass search. It's very important that these hits were produced by the provided searcher; otherwise the doc IDs will not match!

    int topN

    How many re-scored hits to return

    Returns
    Type Description
    TopDocs
    Overrides
    Rescorer.Rescore(IndexSearcher, TopDocs, int)
    Back to top Copyright © 2024 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.