| java.lang.Object org.compass.core.support.search.CompassSearchResults
CompassSearchResults | public class CompassSearchResults (Code) | | The results object returned by
org.compass.core.support.search.CompassSearchHelper when the search
operation on Compass is executed.
Holds the time it took to perform the search operation (in milliseconds), an
array of CompassHit (which might be all the hits, or only
paginated hits) and an array of Page s if using the pagination
feature.
author: kimchy |
Inner Class :public static class Page | |
Method Summary | |
public CompassHit[] | getHits() Returns the hits that resulted from the search operation. | public Page[] | getPages() Returns the pages that construct all the results. | public long | getSearchTime() Returns the time that it took to perform the search operation (in
milliseconds). | public int | getTotalHits() Returns the total number of hits resulted from this search query. | public void | setPages(Page[] pages) Sets the pages that contruct all the results. |
CompassSearchResults | public CompassSearchResults(CompassHit[] hits, long searchTime, int totalHits)(Code) | | |
getHits | public CompassHit[] getHits()(Code) | | Returns the hits that resulted from the search operation. Might hold all
the hits (not using pagination) or only the hits that belong to the
selected page (if using pagination).
The hits |
getPages | public Page[] getPages()(Code) | | Returns the pages that construct all the results.
The pages that holds all the results |
getSearchTime | public long getSearchTime()(Code) | | Returns the time that it took to perform the search operation (in
milliseconds).
How long it took to perform the serarch in milli-seconds. |
getTotalHits | public int getTotalHits()(Code) | | Returns the total number of hits resulted from this search query.
The total number of hits |
setPages | public void setPages(Page[] pages)(Code) | | Sets the pages that contruct all the results.
Parameters: pages - |
|
|