public class DefaultSolrKeywordRedirectService extends Object implements SolrKeywordRedirectService
SolrKeywordRedirectService| Constructor and Description |
|---|
DefaultSolrKeywordRedirectService() |
| Modifier and Type | Method and Description |
|---|---|
SolrSearchResult |
attachKeywordRedirect(SolrSearchResult searchResult)
Attach keyword redirects to a
SolrSearchResult. |
protected List<SolrFacetSearchKeywordRedirectModel> |
findKeywordRedirects(SearchQuery searchQuery) |
List<KeywordRedirectValue> |
getKeywordRedirect(SearchQuery query)
Get keyword redirect for given query.
|
protected List<KeywordRedirectValue> |
getSingleKeywordRedirect(SearchQuery query) |
protected void |
handleKeywordMatch(List<KeywordRedirectValue> result,
String theQuery,
SolrFacetSearchKeywordRedirectModel redirect) |
void |
setCommonI18NService(CommonI18NService commonI18NService) |
void |
setKeywordRedirectSorter(KeywordRedirectSorter keywordRedirectSorter) |
void |
setRedirectHandlers(Map<KeywordRedirectMatchType,KeywordRedirectHandler> redirectHandlers) |
void |
setSolrFacetSearchKeywordDao(SolrFacetSearchKeywordDao solrFacetSearchKeywordDao) |
public List<KeywordRedirectValue> getKeywordRedirect(SearchQuery query)
SolrKeywordRedirectServiceKeywordRedirectSorter.getKeywordRedirect in interface SolrKeywordRedirectServicequery - used to find redirects.KeywordRedirectValuepublic SolrSearchResult attachKeywordRedirect(SolrSearchResult searchResult)
SolrKeywordRedirectServiceSolrSearchResult. It use SolrKeywordRedirectService.getKeywordRedirect(SearchQuery) to get the
list of keywords. If keywords exists in the result new ones will be added and whole list will be sorted.attachKeywordRedirect in interface SolrKeywordRedirectServicesearchResult - result to attach redirects.SolrSearchResult with attached keyword redirects.protected List<KeywordRedirectValue> getSingleKeywordRedirect(SearchQuery query)
protected List<SolrFacetSearchKeywordRedirectModel> findKeywordRedirects(SearchQuery searchQuery)
protected void handleKeywordMatch(List<KeywordRedirectValue> result, String theQuery, SolrFacetSearchKeywordRedirectModel redirect)
public void setSolrFacetSearchKeywordDao(SolrFacetSearchKeywordDao solrFacetSearchKeywordDao)
public void setCommonI18NService(CommonI18NService commonI18NService)
public void setRedirectHandlers(Map<KeywordRedirectMatchType,KeywordRedirectHandler> redirectHandlers)
public void setKeywordRedirectSorter(KeywordRedirectSorter keywordRedirectSorter)
Copyright © 2017 SAP SE. All Rights Reserved.