Re: Gettings interestingTerms from solr.MoreLikeThisHandler using SolrJ

2020-06-19 Thread Shawn Heisey

On 6/18/2020 5:31 AM, Zander, Sebastian wrote:

In the returning QueryResponse I can't find the interestingTerms.
I would really like to grab it on this way, before calling another time.
Any advices? I'm running solr 8.5.2


If you can send the full json or XML response, I think I can show you 
how to parse it with SolrJ.  I don't have easy access to production Solr 
servers, so it's a little difficult for me to try it out myself.


Thanks,
Shawn


Gettings interestingTerms from solr.MoreLikeThisHandler using SolrJ

2020-06-18 Thread Zander, Sebastian
Hello solr-fellows,

i'm currently implementing the MoreLikeThis Feature in an e-commerce platform.
I setup my solr.MoreLikeThisHandler in my solrconfig.xml like this:


  


aid, eans, desclong
list
true
10
aid, eans, desclong
0
  


Running the following command in browser 
http://localhost:8983/solr/ecom/mlt?q=aid:1
It returns with 10 docs in his response and a list of interestingTerms.

Running the same via solrj, I can't find the interestingTerms.
I setup my SolrQuery like this:

SolrQuery sq = new SolrQuery();
sq.setRequestHandler("/mlt");
sq.setQuery("aid:" + p_aid);

In the returning QueryResponse I can't find the interestingTerms.
I would really like to grab it on this way, before calling another time.
Any advices? I'm running solr 8.5.2

Thanks in advance,
Sebastian Zander