Class SuggesterResponse


  • public class SuggesterResponse
    extends Object
    Encapsulates responses from the Suggester Component
    • Method Detail

      • getSuggestions

        public Map<String,​List<Suggestion>> getSuggestions()
        get the suggestions provided by each
        Returns:
        a Map dictionary name : List of Suggestion
      • getSuggestedTerms

        public Map<String,​List<String>> getSuggestedTerms()
        This getter is lazily initialized and returns a simplified map dictionary : List of suggested terms This is useful for simple use cases when you simply need the suggested terms and no weight or payload
        Returns:
        a Map dictionary name : List of suggested terms