org.apache.lucene.search
Interface SortComparatorSource
- Serializable
- SortComparator
public interface SortComparatorSource
extends Serializable
Expert: returns a comparator for sorting ScoreDocs.
Created: Apr 21, 2004 3:49:28 PM
$Id: SortComparatorSource.java 413201 2006-06-10 01:23:22Z gsingers $
newComparator
public ScoreDocComparator newComparator(IndexReader reader,
String fieldname)
throws IOException
Creates a comparator for the field in the given index.
reader
- Index to create comparator for.fieldname
- Fieldable to create comparator for.
- Comparator of ScoreDoc objects.
Copyright © 2000-2007 Apache Software Foundation. All Rights Reserved.