Fork me on GitHub
  • API

    Show / Hide Table of Contents

    Class FieldComparerSource

    Provides a FieldComparer for custom field sorting.

    Note

    This API is experimental and might change in incompatible ways in the next release.

    Inheritance
    object
    FieldComparerSource
    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 abstract class FieldComparerSource

    Methods

    NewComparer(string, int, int, bool)

    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
    string fieldname

    Name of the field to create comparer for.

    int numHits
    int sortPos
    bool reversed
    Returns
    Type Description
    FieldComparer

    FieldComparer.

    Exceptions
    Type Condition
    IOException

    If an error occurs reading the index.

    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.