Class SuggestionResult
- java.lang.Object
-
- com.adobe.granite.omnisearch.api.suggestion.SuggestionResult
-
@ProviderType public final class SuggestionResult extends Object
SuggestionResult encapsulate results of suggestion query, spellcheck and predicate suggestion
-
-
Constructor Summary
Constructors Constructor Description SuggestionResult(List<String> suggestions, List<String> spellCheckSuggestions, List<PredicateSuggestion> predicateSuggestions)Creates newSuggestionResultinstance
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description List<PredicateSuggestion>getPredicateSuggestions()This function returnsListofPredicateSuggestionsfor the module.List<String>getSpellcheckSuggestions()this function returns the spell check suggestions for the search term for the module.List<String>getSuggestions()This function returns the list of suggestions for search term for the module.
-
-
-
Constructor Detail
-
SuggestionResult
public SuggestionResult(List<String> suggestions, List<String> spellCheckSuggestions, List<PredicateSuggestion> predicateSuggestions)
Creates newSuggestionResultinstance- Parameters:
suggestions- List of suggestionsspellCheckSuggestions- List of spellcheck suggestionspredicateSuggestions- List ofPredicateSuggestion
-
-
Method Detail
-
getPredicateSuggestions
public List<PredicateSuggestion> getPredicateSuggestions()
This function returnsListofPredicateSuggestionsfor the module.- Returns:
- list
-
getSuggestions
public List<String> getSuggestions()
This function returns the list of suggestions for search term for the module.- Returns:
- list
-
-