@ProviderType
public interface SearchResult
Modifier and Type | Method and Description |
---|---|
java.lang.String |
getExecutionTime()
Returns the execution time in fractions of a second.
|
long |
getExecutionTimeMillis()
Returns the execution time in milliseconds.
|
java.util.Map<java.lang.String,Facet> |
getFacets()
Returns the facets for this search result.
|
java.lang.String |
getFilteringPredicates()
Returns a string with a list of the predicates that were filtering the
result set (as opposed to using XPath, see
getQueryStatement() ). |
java.util.List<Hit> |
getHits() |
long |
getHitsPerPage() |
ResultPage |
getNextPage() |
java.util.Iterator<Node> |
getNodes() |
ResultPage |
getPreviousPage() |
java.lang.String |
getQueryStatement()
Returns the actual query string run against the repository, eg.
|
java.util.Iterator<Resource> |
getResources() |
java.util.List<ResultPage> |
getResultPages() |
long |
getStartIndex() |
long |
getTotalMatches()
Returns the total number of matches or the total as far as it is known.
|
boolean |
hasMore()
Returns whether there are more matches than given by
getTotalMatches() . |
long getTotalMatches()
getStartIndex()
+ getHitsPerPage()
. Check
hasMore()
to see if there are more matches.boolean hasMore()
getTotalMatches()
.getTotalMatches()
long getStartIndex()
long getHitsPerPage()
java.util.Iterator<Node> getNodes()
getHits()
but directly with the underlying nodesjava.util.Iterator<Resource> getResources()
getHits()
but returning Resource objectsjava.util.List<ResultPage> getResultPages()
ResultPage
es to display the navigation through the
result pages. It may not return all the pages in the result due to performance concerns.
The actual result is dependent on implementation i.e. it may return X previous pages and X next pages.ResultPage getPreviousPage()
null
if there is no previous page (i.e. the
current page is the first page).ResultPage getNextPage()
null
if there is no next page (i.e. the
current page is the last page).java.lang.String getExecutionTime()
long getExecutionTimeMillis()
java.util.Map<java.lang.String,Facet> getFacets() throws RepositoryException
RepositoryException
- if an error occurs while executing the query
or calculating the facets.java.lang.String getQueryStatement()
getFilteringPredicates()
.java.lang.String getFilteringPredicates()
getQueryStatement()
).
The returned string is for informational purposes only and might not
fully describe the predicates and their parameters.Copyright © 2010 - 2020 Adobe. All Rights Reserved