public class SortSpec extends Object
Constructor and Description |
---|
SortSpec(Sort sort,
List<SchemaField> fields) |
SortSpec(Sort sort,
List<SchemaField> fields,
int num,
int offset) |
SortSpec(Sort sort,
SchemaField[] fields) |
SortSpec(Sort sort,
SchemaField[] fields,
int num,
int offset) |
Modifier and Type | Method and Description |
---|---|
int |
getCount()
Gets the number of documents to return after sorting.
|
int |
getOffset()
Offset into the list of results.
|
List<SchemaField> |
getSchemaFields()
Gets the Solr SchemaFields that correspond to each of the SortFields used
in this sort.
|
Sort |
getSort()
Gets the Lucene Sort object, or null for the default sort
by score descending.
|
boolean |
includesScore() |
static boolean |
includesScore(Sort sort) |
void |
setCount(int count) |
void |
setOffset(int offset) |
void |
setSortAndFields(Sort s,
List<SchemaField> fields)
the specified SchemaFields must correspond one to one with the Sort's SortFields,
using null where appropriate.
|
String |
toString() |
public SortSpec(Sort sort, List<SchemaField> fields, int num, int offset)
public SortSpec(Sort sort, List<SchemaField> fields)
public SortSpec(Sort sort, SchemaField[] fields, int num, int offset)
public SortSpec(Sort sort, SchemaField[] fields)
public void setSortAndFields(Sort s, List<SchemaField> fields)
public static boolean includesScore(Sort sort)
public boolean includesScore()
public Sort getSort()
public List<SchemaField> getSchemaFields()
public int getOffset()
public void setOffset(int offset)
public int getCount()
public void setCount(int count)
Copyright © 2000-2018 Apache Software Foundation. All Rights Reserved.