Documentation of 'org.apache.lucene.search.SortComparatorSource' Java class
SortComparatorSource
org.apache.lucene.search

Interface SortComparatorSource

  • All Superinterfaces:
    java.io.Serializable
    All Known Implementing Classes:
    SortComparator


    public interface SortComparatorSource
    extends java.io.Serializable
    Expert: returns a comparator for sorting ScoreDocs.

    Created: Apr 21, 2004 3:49:28 PM

    Since:
    1.4
    • Method Detail

      • newComparator

        ScoreDocComparator newComparator(IndexReader reader,
                                         java.lang.String fieldname)
                                  throws java.io.IOException
        Creates a comparator for the field in the given index.
        Parameters:
        reader - Index to create comparator for.
        fieldname - Name of the field to create comparator for.
        Returns:
        Comparator of ScoreDoc objects.
        Throws:
        java.io.IOException - If an error occurs reading the index.

DataMelt 3.0 © DataMelt by jWork.ORG

You see the box below because you did not login.