org.apache.solr.search
Class MissingStringLastComparatorSource

java.lang.Object
  extended by org.apache.lucene.search.FieldComparatorSource
      extended by org.apache.solr.search.MissingStringLastComparatorSource
All Implemented Interfaces:
Serializable

public class MissingStringLastComparatorSource
extends org.apache.lucene.search.FieldComparatorSource

See Also:
Serialized Form

Field Summary
static String bigString
           
 
Constructor Summary
MissingStringLastComparatorSource()
           
MissingStringLastComparatorSource(String missingValueProxy)
          Creates a FieldComparatorSource that uses missingValueProxy as the value to return from ScoreDocComparator.sortValue() which is only used my multisearchers to determine how to collate results from their searchers.
 
Method Summary
 org.apache.lucene.search.FieldComparator newComparator(String fieldname, int numHits, int sortPos, boolean reversed)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

bigString

public static final String bigString
See Also:
Constant Field Values
Constructor Detail

MissingStringLastComparatorSource

public MissingStringLastComparatorSource()

MissingStringLastComparatorSource

public MissingStringLastComparatorSource(String missingValueProxy)
Creates a FieldComparatorSource that uses missingValueProxy as the value to return from ScoreDocComparator.sortValue() which is only used my multisearchers to determine how to collate results from their searchers.

Parameters:
missingValueProxy - The value returned when sortValue() is called for a document missing the sort field. This value is *not* normally used for sorting, but used to create
Method Detail

newComparator

public org.apache.lucene.search.FieldComparator newComparator(String fieldname,
                                                              int numHits,
                                                              int sortPos,
                                                              boolean reversed)
                                                       throws IOException
Specified by:
newComparator in class org.apache.lucene.search.FieldComparatorSource
Throws:
IOException


Copyright © 2000-2011 Apache Software Foundation. All Rights Reserved.