org.apache.solr.search
Class QueryParsing.SortSpec

java.lang.Object
  extended by org.apache.solr.search.QueryParsing.SortSpec
Enclosing class:
QueryParsing

public static class QueryParsing.SortSpec
extends Object

SortSpec encapsulates a Lucene Sort and a count of the number of documents to return.


Method Summary
 int getCount()
          Gets the number of documens to return after sorting.
 Sort getSort()
          Gets the Lucene Sort object, or null for the default sort by score descending.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

getSort

public Sort getSort()
Gets the Lucene Sort object, or null for the default sort by score descending.


getCount

public int getCount()
Gets the number of documens to return after sorting.

Returns:
number of docs to return, or -1 for no cut off (just sort)


Copyright © 2006 - 2009 The Apache Software Foundation