Fork me on GitHub
  • API

    Show / Hide Table of Contents

    Class FieldComparerSource

    Provides a FieldComparer for custom field sorting.

    This is a Lucene.NET EXPERIMENTAL API, use at your own risk
    Inheritance
    System.Object
    FieldComparerSource
    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 FieldComparerSource

    Methods

    | Improve this Doc View Source

    NewComparer(String, Int32, Int32, Boolean)

    Creates a comparer for the field in the given index.

    Declaration
    public abstract FieldComparer NewComparer(string fieldname, int numHits, int sortPos, bool reversed)
    Parameters
    Type Name Description
    System.String fieldname

    Name of the field to create comparer for.

    System.Int32 numHits
    System.Int32 sortPos
    System.Boolean reversed
    Returns
    Type Description
    FieldComparer

    FieldComparer.

    Exceptions
    Type Condition
    System.IO.IOException

    If an error occurs reading the index.

    • 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.