Package | Description |
---|---|
org.apache.solr.client.solrj |
Primary APIs for communicating with a Solr Server from a Java client.
|
Modifier and Type | Method and Description |
---|---|
static SolrQuery.SortClause |
SolrQuery.SortClause.asc(String item)
Creates an ascending SortClause for an item
|
static SolrQuery.SortClause |
SolrQuery.SortClause.create(String item,
SolrQuery.ORDER order)
Creates an ascending SortClause for an item
|
static SolrQuery.SortClause |
SolrQuery.SortClause.create(String item,
String order)
Creates a SortClause based on item and order
|
static SolrQuery.SortClause |
SolrQuery.SortClause.desc(String item)
Creates a decending SortClause for an item
|
Modifier and Type | Method and Description |
---|---|
List<SolrQuery.SortClause> |
SolrQuery.getSorts()
Gets an a list of current sort clauses.
|
Modifier and Type | Method and Description |
---|---|
SolrQuery |
SolrQuery.addOrUpdateSort(SolrQuery.SortClause sortClause)
Updates or adds a single sort field specification to the current sort
information.
|
SolrQuery |
SolrQuery.addSort(SolrQuery.SortClause sortClause)
Adds a single sort clause to the end of the query.
|
SolrQuery |
SolrQuery.removeSort(SolrQuery.SortClause sortClause)
Removes a single sort field from the current sort information.
|
SolrQuery |
SolrQuery.setSort(SolrQuery.SortClause sortClause)
Replaces the current sort information with a single sort clause
|
Modifier and Type | Method and Description |
---|---|
SolrQuery |
SolrQuery.setSorts(List<SolrQuery.SortClause> value)
Replaces the current sort information.
|
Copyright © 2000-2021 Apache Software Foundation. All Rights Reserved.