Interface SearchResultsSet
-
- All Known Implementing Classes:
SearchResultsSetImpl
@ConsumerType public interface SearchResultsSet
Represents a set of search results from a backend service. This would generally contain the actualProductListItem
s as well asSearchAggregation
s.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description List<SearchAggregation>
getAppliedAggregations()
Get the list of aggregations or filters that were applied in this search.Map<String,String>
getAppliedQueryParameters()
Get a map of the applied search query string parameters.List<SearchAggregation>
getAvailableAggregations()
Get the available search aggregations for the given result setPager
getPager()
List<ProductListItem>
getProductListItems()
Get the result product list items.List<SearchAggregation>
getSearchAggregations()
Get the available search aggregations for the given result set.SearchOptions
getSearchOptions()
Get the search options used to provide this search result set.Sorter
getSorter()
Integer
getTotalResults()
Get the total number of results.boolean
hasAggregations()
boolean
hasPagination()
boolean
hasSorting()
-
-
-
Method Detail
-
getSearchOptions
@Nonnull SearchOptions getSearchOptions()
Get the search options used to provide this search result set.- Returns:
- the
SearchOptions
used in the search
-
getTotalResults
@Nonnull Integer getTotalResults()
Get the total number of results.- Returns:
- the total number of results
-
getAppliedQueryParameters
@Nonnull Map<String,String> getAppliedQueryParameters()
Get a map of the applied search query string parameters.- Returns:
- the query string parameters (key value pairs)
-
getProductListItems
@Nonnull List<ProductListItem> getProductListItems()
Get the result product list items. These are the actual result of the search.- Returns:
- the resulting products
-
getSearchAggregations
@Nonnull List<SearchAggregation> getSearchAggregations()
Get the available search aggregations for the given result set.- Returns:
- the aggregations or filters available for the search result set.
-
getAppliedAggregations
@Nonnull List<SearchAggregation> getAppliedAggregations()
Get the list of aggregations or filters that were applied in this search.- Returns:
- the applied filter aggregations
-
getAvailableAggregations
@Nonnull List<SearchAggregation> getAvailableAggregations()
Get the available search aggregations for the given result set- Returns:
- the available aggregations
-
getPager
@Nonnull Pager getPager()
- Returns:
- The pager model, responsible for handling the pagination of search results.
-
getSorter
@Nonnull Sorter getSorter()
- Returns:
- The sorter model, responsible for handling the sorting of search results.
-
hasAggregations
boolean hasAggregations()
- Returns:
true
if the result set provides search aggregations for faceted search support,false
otherwise
-
hasPagination
boolean hasPagination()
- Returns:
true
if the result set provides pagination,false
otherwise
-
hasSorting
boolean hasSorting()
- Returns:
true
if the result set provides support for sorting of the results,false
otherwise
-
-