Interface SolrAutoSuggestService
-
- All Known Implementing Classes:
DefaultSolrAutoSuggestService,MockSolrAutoCompleteService
public interface SolrAutoSuggestServiceService 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
All Methods Instance Methods Abstract Methods Modifier and Type Method Description SolrSuggestiongetAutoSuggestionsForQuery(LanguageModel language, SolrIndexedTypeModel indexedType, java.lang.String query)Returns solr's suggestions based on the indexed type, language and user's input.
-
-
-
Method Detail
-
getAutoSuggestionsForQuery
SolrSuggestion getAutoSuggestionsForQuery(LanguageModel language, SolrIndexedTypeModel indexedType, java.lang.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
-
-