FileDocCategorySizeDatePackage
SortComparatorSource.javaAPI DocApache Lucene 2.2.01624Sat Jun 16 22:20:34 BST 2007org.apache.lucene.search

SortComparatorSource

public interface SortComparatorSource implements Serializable
Expert: returns a comparator for sorting ScoreDocs.

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

author
Tim Jones
version
$Id: SortComparatorSource.java 534568 2007-05-02 17:48:47Z otis $
since
1.4

Fields Summary
Constructors Summary
Methods Summary
public org.apache.lucene.search.ScoreDocComparatornewComparator(org.apache.lucene.index.IndexReader reader, java.lang.String fieldname)
Creates a comparator for the field in the given index.

param
reader Index to create comparator for.
param
fieldname Name of the field to create comparator for.
return
Comparator of ScoreDoc objects.
throws
IOException If an error occurs reading the index.