I've been working with MLT handler (Solr 8.1.1) by calling it the same way you did, http://[SOLR URL]/mlt. But the response is very unreliable with 90% of the same queries resulting in Java null pointer exception, and only 10% returning expected response. I do not know what is the cause of this.
I overcame this problem by using knnSearch via Stream handler ( https://lucene.apache.org/solr/guide/8_1/stream-source-reference.html#knnsearch). It is just a wrapper on MLT, and it works brilliantly. It is worth checking it out if you are running Solr in cloud mode. If you pass the fl="score"&sort="score desc" to knnSearch, you will be able to get the results sorted by matching scores. Best wishes, Chee Yee On Thu, 12 Sep 2019 at 19:44, Srisatya Pyla <srisp...@in.ibm.com> wrote: > Hi Solr Seatch Team, > > I am a developer from IBM Kenexa Brassring. We are using Solr Search > engine for searching jobs in our applications. > We are planning to use MLT feature to get the similar matching documents > (jobs) based on one document (job). > > When trying to explore this option, we are using matching field as > JobDescription of the job and we are getting some unrelated documents in > the MLT results which are not expected. > > The query like below: > > http://[SOLR > URL]/mlt?q=sjkey:1414462-25600-5258&wt=json&indent=true&mlt=true&rows=100&mlt.fl=jobdescription&mlt.mindf=1&mlt.mintf=1&fl=jobtitle,jobdescription&fq=siteid:5258 > > > *We have few questions*: > 1) Is there any way we can get the matching score for each of the matching > document we get in the MLT results, so that we can get the sorting done on > the score to have the highest matching document at the top of the result. > > 2) Are there any best practices using MLT Handler? > > > Regards, > ------------------------------ > *SST Narasimha Rao Pyla* > > *IBM Talent Management SolutionsMobile :*+91 9849315546 > *E-mail :**srisp...@in.ibm.com* <hemanth.kadamb...@in.ibm.com> > [image: IBM] > > IBM Visakha Hills > Visakhapatnam, AP 530045 > India > > >