Package org.apache.maven.search.api
Interface SearchResponse
- All Known Subinterfaces:
IndexerCoreSearchResponse,RemoteRepositorySearchResponse,SmoSearchResponse
- All Known Implementing Classes:
IndexerCoreSearchResponseImpl,RemoteRepositorySearchResponseImpl,SearchResponseSupport,SmoSearchResponseImpl
public interface SearchResponse
A search engine response.
-
Method Summary
Modifier and TypeMethodDescriptionintReturns the count of current hits in current "page".getPage()Returns current "page" of results as list of records, nevernull.Returns theSearchRequestused for this response, nevernull.intReturns the total count of hits produced bygetSearchRequest().
-
Method Details
-
getSearchRequest
SearchRequest getSearchRequest()Returns theSearchRequestused for this response, nevernull. -
getTotalHits
int getTotalHits()Returns the total count of hits produced bygetSearchRequest(). -
getCurrentHits
int getCurrentHits()Returns the count of current hits in current "page". It may be less or equal to page size ofSearchRequest.getPaging(). -
getPage
Returns current "page" of results as list of records, nevernull.
-