public interface SearchQuery
| Modifier and Type | Interface and Description |
|---|---|
static class |
SearchQuery.Order |
| Modifier and Type | Method and Description |
|---|---|
SearchQuery |
addFacetFields(String... fields)
What fields should be used to facet the results?
|
SearchQuery |
addFields(Collection<String> names)
Which fields should be returned from the query?
|
SearchQuery |
addFields(String... names)
Which fields should be returned from the query?
|
SearchQuery |
addFilterQueries(String... filterQueries)
Restrict the results by these queries.
|
SearchQuery |
addFilterQuery(String filterQuery)
Restrict the results by this query.
|
SearchQuery |
addSortField(String name,
SearchQuery.Order order)
What field should be used to sort the results, and in what order?
|
Set<String> |
getFacetFields() |
int |
getFacetLimit() |
int |
getFacetMinCount() |
Set<String> |
getFieldsToReturn() |
Set<String> |
getFilters() |
String |
getQuery() |
int |
getRows() |
Map<String,SearchQuery.Order> |
getSortFields() |
int |
getStart() |
SearchQuery |
setFacetLimit(int cnt)
The maximum number of facet counts that will be returned from the query.
|
SearchQuery |
setFacetMinCount(int cnt)
Facet having fewer hits will be excluded from the list.
|
SearchQuery |
setQuery(String query)
Set the text of the query.
|
SearchQuery |
setRows(int rows)
What is the maximum number of documents that will be returned from the
query? A negative value means no limit.
|
SearchQuery |
setStart(int start)
Where in the ordered list of result documents should the response begin?
That is, how many of the results should be skipped? (allows paging of
results).
|
SearchQuery setQuery(String query)
SearchQuery setStart(int start)
SearchQuery setRows(int rows)
SearchQuery addFields(String... names)
SearchQuery addFields(Collection<String> names)
SearchQuery addSortField(String name, SearchQuery.Order order)
SearchQuery addFilterQuery(String filterQuery)
SearchQuery addFilterQueries(String... filterQueries)
SearchQuery addFacetFields(String... fields)
SearchQuery setFacetLimit(int cnt)
SearchQuery setFacetMinCount(int cnt)
String getQuery()
int getStart()
int getRows()
Map<String,SearchQuery.Order> getSortFields()
int getFacetLimit()
int getFacetMinCount()
Copyright © 2016. All rights reserved.