Class TermsResponse
- java.lang.Object
-
- org.apache.solr.client.solrj.response.TermsResponse
-
public class TermsResponse extends Object
Encapsulates responses from TermsComponent
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
TermsResponse.Term
-
Constructor Summary
Constructors Constructor Description TermsResponse(NamedList<NamedList<Object>> termsInfo)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Map<String,List<TermsResponse.Term>>
getTermMap()
List<TermsResponse.Term>
getTerms(String field)
Get's the term list for a given field
-
-
-
Method Detail
-
getTerms
public List<TermsResponse.Term> getTerms(String field)
Get's the term list for a given field- Returns:
- the term list or null if no terms for the given field exist
-
getTermMap
public Map<String,List<TermsResponse.Term>> getTermMap()
-
-