Interface SearchResponse

All Known Subinterfaces:
IndexerCoreSearchResponse, RemoteRepositorySearchResponse, SmoSearchResponse
All Known Implementing Classes:
IndexerCoreSearchResponseImpl, RemoteRepositorySearchResponseImpl, SearchResponseSupport, SmoSearchResponseImpl

public interface SearchResponse
A search engine response.
  • Method Details

    • getSearchRequest

      SearchRequest getSearchRequest()
      Returns the SearchRequest used for this response, never null.
    • getTotalHits

      int getTotalHits()
      Returns the total count of hits produced by getSearchRequest().
    • getCurrentHits

      int getCurrentHits()
      Returns the count of current hits in current "page". It may be less or equal to page size of SearchRequest.getPaging().
    • getPage

      List<Record> getPage()
      Returns current "page" of results as list of records, never null.