params.add(TermsParams.TERMS, "true");
params.add(TermsParams.TERMS_FIELD, "lowerfilt", "standardfilt");
//no lower bound
params.add(TermsParams.TERMS_UPPER, "b");
params.add(TermsParams.TERMS_LIMIT, String.valueOf(50));
SolrRequestHandler handler;
SolrQueryResponse rsp;
NamedList values;
NamedList terms;
handler = core.getRequestHandler("/terms");
assertTrue("handler is null and it shouldn't be", handler != null);
rsp = new SolrQueryResponse();
rsp.add("responseHeader", new SimpleOrderedMap());
handler.handleRequest(new LocalSolrQueryRequest(core, params), rsp);
values = rsp.getValues();
NamedList tmp = (NamedList) values.get("terms");
assertTrue("tmp Size: " + tmp.size() + " is not: " + 2, tmp.size() == 2);
terms = (NamedList) tmp.get("lowerfilt");
assertTrue("terms Size: " + terms.size() + " is not: " + 6, terms.size() == 6);