public class DefaultKeywordRedirectSorter extends Object implements KeywordRedirectSorter
| Constructor and Description |
|---|
DefaultKeywordRedirectSorter() |
| Modifier and Type | Method and Description |
|---|---|
void |
setComparatorList(List<Comparator<SolrFacetSearchKeywordRedirectModel>> comparatorList) |
void |
setSortOrder(List<KeywordRedirectMatchType> sortOrder) |
List<SolrFacetSearchKeywordRedirectModel> |
sort(List<SolrFacetSearchKeywordRedirectModel> keywordRedirectList)
Takes a keywordRedirectSet and return sorted list of the same type.
|
protected List<SolrFacetSearchKeywordRedirectModel> |
sortByComparators(List<SolrFacetSearchKeywordRedirectModel> keywordRedirectList) |
protected List<SolrFacetSearchKeywordRedirectModel> |
sortByMatchType(List<SolrFacetSearchKeywordRedirectModel> keywordRedirectList) |
public List<SolrFacetSearchKeywordRedirectModel> sort(List<SolrFacetSearchKeywordRedirectModel> keywordRedirectList)
KeywordRedirectSortersort in interface KeywordRedirectSorterkeywordRedirectList - list to sort.protected List<SolrFacetSearchKeywordRedirectModel> sortByMatchType(List<SolrFacetSearchKeywordRedirectModel> keywordRedirectList)
public void setSortOrder(List<KeywordRedirectMatchType> sortOrder)
public void setComparatorList(List<Comparator<SolrFacetSearchKeywordRedirectModel>> comparatorList)
protected List<SolrFacetSearchKeywordRedirectModel> sortByComparators(List<SolrFacetSearchKeywordRedirectModel> keywordRedirectList)
Copyright © 2017 SAP SE. All Rights Reserved.