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