I spend so much time working with the Terms.
At the end of the day, I realized that there is another set of commands that you need to invoke in order to get the results from the requestHandler request / terms.
I tried to get the results using
HttpSolrServer server = new HttpSolrServ(solrUrl); List<SolrDocument> list = server.query(query).getResults()
However, the right way to get results from TermComponent is
HttpSolrServer server = new HttpSolrServ(solrUrl); TermsResponse termResp = server.query(query).getTermsResponse(); List<Term> tList = termResp.getTerms("fieldNAME");
I hope this can help someone else in the future.
source share