Interface SolrAutoSuggestService
- All Known Implementing Classes:
DefaultSolrAutoSuggestService,MockSolrAutoCompleteService
public interface SolrAutoSuggestService
Service responsible for updating solr's suggester dictionary configuration and also for retrieving solr server's
suggestions based on user query input, language and indexed type.
-
Method Summary
Modifier and TypeMethodDescriptiongetAutoSuggestionsForQuery(LanguageModel language, SolrIndexedTypeModel indexedType, String query) Returns solr's suggestions based on the indexed type, language and user's input.
-
Method Details
-
getAutoSuggestionsForQuery
SolrSuggestion getAutoSuggestionsForQuery(LanguageModel language, SolrIndexedTypeModel indexedType, String query) throws SolrAutoSuggestException Returns solr's suggestions based on the indexed type, language and user's input. Suggestions come from dictionary build per indexed type and which is based on the fields which are marked for building the dictionary.- Parameters:
language- - the languageindexedType- - the indexed typequery- -the query- Returns:
SolrSuggestion- Throws:
SolrAutoSuggestException- if an error occurs
-