Class DefaultSolrKeywordRedirectService
- java.lang.Object
-
- de.hybris.platform.solrfacetsearch.search.impl.DefaultSolrKeywordRedirectService
-
- All Implemented Interfaces:
SolrKeywordRedirectService
public class DefaultSolrKeywordRedirectService extends java.lang.Object implements SolrKeywordRedirectService
Default implementation forSolrKeywordRedirectService
-
-
Constructor Summary
Constructors Constructor Description DefaultSolrKeywordRedirectService()
-
Method Summary
-
-
-
Method Detail
-
getKeywordRedirect
public java.util.List<KeywordRedirectValue> getKeywordRedirect(SearchQuery query)
Description copied from interface:SolrKeywordRedirectServiceGet keyword redirect for given query. The redirects should be sorted by usingKeywordRedirectSorter.- Specified by:
getKeywordRedirectin interfaceSolrKeywordRedirectService- Parameters:
query- used to find redirects.- Returns:
- List of
KeywordRedirectValue
-
attachKeywordRedirect
public SolrSearchResult attachKeywordRedirect(SolrSearchResult searchResult)
Description copied from interface:SolrKeywordRedirectServiceAttach keyword redirects to aSolrSearchResult. It useSolrKeywordRedirectService.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.- Specified by:
attachKeywordRedirectin interfaceSolrKeywordRedirectService- Parameters:
searchResult- result to attach redirects.- Returns:
SolrSearchResultwith attached keyword redirects.
-
getSingleKeywordRedirect
protected java.util.List<KeywordRedirectValue> getSingleKeywordRedirect(SearchQuery query)
-
findKeywordRedirects
protected java.util.List<SolrFacetSearchKeywordRedirectModel> findKeywordRedirects(SearchQuery searchQuery)
-
handleKeywordMatch
protected void handleKeywordMatch(java.util.List<KeywordRedirectValue> result, java.lang.String theQuery, SolrFacetSearchKeywordRedirectModel redirect)
-
setSolrFacetSearchKeywordDao
public void setSolrFacetSearchKeywordDao(SolrFacetSearchKeywordDao solrFacetSearchKeywordDao)
-
setCommonI18NService
public void setCommonI18NService(CommonI18NService commonI18NService)
-
setRedirectHandlers
public void setRedirectHandlers(java.util.Map<KeywordRedirectMatchType,KeywordRedirectHandler> redirectHandlers)
-
setKeywordRedirectSorter
public void setKeywordRedirectSorter(KeywordRedirectSorter keywordRedirectSorter)
-
-