Interface AccommodationOfferingSearchService<STATE,ITEM,RESULT extends AccommodationOfferingSearchPageData<STATE,ITEM>>
- Type Parameters:
STATE- The type of the search query state. This is implementation specific. For exampleSolrSearchQueryDataITEM- The type of items returned as part of the search results. For exampleSearchResultValueDataRESULT- The type of the search page data returned. Must be (or extend)FacetSearchPageData.
- All Known Implementing Classes:
DefaultSolrAccommodationOfferingSearchService
public interface AccommodationOfferingSearchService<STATE,ITEM,RESULT extends AccommodationOfferingSearchPageData<STATE,ITEM>>
AccommodationOfferingSearchService interface. Its main purpose is to retrieve accommodation offering search results.
The search service implementation is stateless, i.e. it does not maintain any state for each search, instead it
externalizes the search state in the search page data returned. The search must be initiated by calling the search
method {@link #accommodationOfferingSearch.doSearch(SolrSearchQueryData,PageableData)}. From this method's return
value, the search page data result can be retrieved.
-
Method Summary
Modifier and TypeMethodDescriptiondoSearch(SolrSearchQueryData searchQueryData, PageableData pageableData)
-
Method Details
-
doSearch
- Parameters:
searchQueryData- the search query objectpageableData- the page to return- Returns:
- the search results
-