public class SuggesterResponse extends Object
Constructor and Description |
---|
SuggesterResponse(Map<String,NamedList<Object>> suggestInfo)
Deprecated.
use
SuggesterResponse(NamedList) instead |
SuggesterResponse(NamedList<NamedList<Object>> suggestInfo)
Create a Map representing the suggest section of Solr's response.
|
Modifier and Type | Method and Description |
---|---|
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
|
Map<String,List<Suggestion>> |
getSuggestions()
get the suggestions provided by each
|
public SuggesterResponse(NamedList<NamedList<Object>> suggestInfo)
@Deprecated public SuggesterResponse(Map<String,NamedList<Object>> suggestInfo)
SuggesterResponse(NamedList)
insteadpublic Map<String,List<Suggestion>> getSuggestions()
public Map<String,List<String>> getSuggestedTerms()
Copyright © 2000-2021 Apache Software Foundation. All Rights Reserved.