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 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 language
        indexedType - - the indexed type
        query - -the query
        Returns:
        SolrSuggestion
        Throws:
        SolrAutoSuggestException - if an error occurs