Interface SolrKeywordRedirectService
- All Known Implementing Classes:
DefaultSolrKeywordRedirectService
public interface SolrKeywordRedirectService
Service to deal with keyword redirects.
-
Method Summary
Modifier and TypeMethodDescriptionAttach keyword redirects to aSolrSearchResult.getKeywordRedirect(SearchQuery query) Get keyword redirect for given query.
-
Method Details
-
getKeywordRedirect
Get keyword redirect for given query. The redirects should be sorted by usingKeywordRedirectSorter.- Parameters:
query- used to find redirects.- Returns:
- List of
KeywordRedirectValue
-
attachKeywordRedirect
Attach keyword redirects to aSolrSearchResult. It usegetKeywordRedirect(SearchQuery)to get the list of keywords. If keywords exists in the result new ones will be added and whole list will be sorted.- Parameters:
result- result to attach redirects.- Returns:
SolrSearchResultwith attached keyword redirects.
-