Package org.apache.maven.search.api
Interface SearchResponse
- All Known Implementing Classes:
SearchResponseSupport
public interface SearchResponse
A search engine response.
-
Method Summary
Modifier and TypeMethodDescriptionint
Returns the count of current hits in current "page".getPage()
Returns current "page" of results as list of records, nevernull
.Returns theSearchRequest
used for this response, nevernull
.int
Returns the total count of hits produced bygetSearchRequest()
.
-
Method Details
-
getSearchRequest
SearchRequest getSearchRequest()Returns theSearchRequest
used 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
.
-