Class SuggestionResult
java.lang.Object
com.adobe.granite.omnisearch.api.suggestion.SuggestionResult
SuggestionResult encapsulate results of suggestion query, spellcheck and predicate suggestion
-
Constructor Summary
ConstructorsConstructorDescriptionSuggestionResult(List<String> suggestions, List<String> spellCheckSuggestions, List<PredicateSuggestion> predicateSuggestions) Creates newSuggestionResultinstance -
Method Summary
Modifier and TypeMethodDescriptionThis function returnsListofPredicateSuggestionsfor the module.this function returns the spell check suggestions for the search term for the module.This function returns the list of suggestions for search term for the module.
-
Constructor Details
-
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 Details
-
getPredicateSuggestions
This function returnsListofPredicateSuggestionsfor the module.- Returns:
- list
-
getSuggestions
This function returns the list of suggestions for search term for the module.- Returns:
- list
-
getSpellcheckSuggestions
this function returns the spell check suggestions for the search term for the module.- Returns:
- list
-