Class SearchResultResponse
java.lang.Object
com.iland.core.web.rest.response.search.SearchResultResponse
- All Implemented Interfaces:
Serializable
Search Result Response.
- Author:
- Brett Snyder
- See Also:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionintGet the page Offset of search results.intGet the page size of search results.getQuery()Get the query string for the search.A list of search results as a map of properties in the returned document.intGet the number of hits returned.Return the top scoring search result.intGet the total number of hits from query.
-
Constructor Details
-
SearchResultResponse
-
-
Method Details
-
getQuery
Get the query string for the search.- Returns:
Stringquery string
-
getReturnedHits
public int getReturnedHits()Get the number of hits returned.- Returns:
- number of hits returned
-
getResults
A list of search results as a map of properties in the returned document.- Returns:
- search results list
-
getTotalHits
public int getTotalHits()Get the total number of hits from query.- Returns:
- total hits
-
getTopResult
Return the top scoring search result.- Returns:
- top search result
-
getPageOffset
public int getPageOffset()Get the page Offset of search results.- Returns:
- the page offset
-
getPageSize
public int getPageSize()Get the page size of search results.- Returns:
- the page size
-