Interface SolrKeywordRedirectService
-
- All Known Implementing Classes:
DefaultSolrKeywordRedirectService
public interface SolrKeywordRedirectServiceService to deal with keyword redirects.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description SolrSearchResultattachKeywordRedirect(SolrSearchResult result)Attach keyword redirects to aSolrSearchResult.java.util.List<KeywordRedirectValue>getKeywordRedirect(SearchQuery query)Get keyword redirect for given query.
-
-
-
Method Detail
-
getKeywordRedirect
java.util.List<KeywordRedirectValue> getKeywordRedirect(SearchQuery query)
Get keyword redirect for given query. The redirects should be sorted by usingKeywordRedirectSorter.- Parameters:
query- used to find redirects.- Returns:
- List of
KeywordRedirectValue
-
attachKeywordRedirect
SolrSearchResult attachKeywordRedirect(SolrSearchResult result)
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.
-
-