Interface ProductSearchAutocompleteService<RESULT extends AutocompleteSuggestion>

  • Type Parameters:
    RESULT - The type of the result data structure containing the returned suggestions
    All Known Implementing Classes:
    DefaultSolrProductSearchAutocompleteService

    public interface ProductSearchAutocompleteService<RESULT extends AutocompleteSuggestion>
    Autocomplete interface. Its purpose is to retrieve valid search terms that start with the user's given input, to enhance the search experience and avoid searches for nonexistent terms. This interface/service should be called asynchronously, assisting the user while typing.
    • Method Detail

      • getAutocompleteSuggestions

        java.util.List<RESULT> getAutocompleteSuggestions​(java.lang.String input)
        Get the auto complete suggestions for the input provided.
        Parameters:
        input - the user's input on which the autocomplete is based
        Returns:
        a list of suggested search terms