Class SuggestionResult


  • @ProviderType
    public final class SuggestionResult
    extends Object
    SuggestionResult encapsulate results of suggestion query, spellcheck and predicate suggestion
    • Constructor Detail

      • SuggestionResult

        public SuggestionResult​(List<String> suggestions,
                                List<String> spellCheckSuggestions,
                                List<PredicateSuggestion> predicateSuggestions)
        Creates new SuggestionResult instance
        Parameters:
        suggestions - List of suggestions
        spellCheckSuggestions - List of spellcheck suggestions
        predicateSuggestions - List of PredicateSuggestion
    • Method Detail

      • getPredicateSuggestions

        public List<PredicateSuggestion> getPredicateSuggestions()
        This function returnsList of PredicateSuggestions for the module.
        Returns:
        list
      • getSuggestions

        public List<String> getSuggestions()
        This function returns the list of suggestions for search term for the module.
        Returns:
        list
      • getSpellcheckSuggestions

        public List<String> getSpellcheckSuggestions()
        this function returns the spell check suggestions for the search term for the module.
        Returns:
        list