My More Like This query doesn't return the results for any start value other than 0.
My Query URLs with Responses are below:
The above works Fine.
The above query throws the below result:
{
"responseHeader":{
"status":0,
"QTime":1,
"params":{
"q":"one:ABC",
"mlt":"true",
"indent":"on",
"mlt.fl":"one, two, three",
"start":"1",
"rows":"100",
"wt":"json"}},
"response":{"numFound":1,"start":1,"docs":[]
},
"moreLikeThis":{}}
I'm using solr 6.3 and the Schema for MLT that i used is below:
<requestHandler name="mlt_tracks" class="solr.MoreLikeThisHandler">
<lst name="defaults">
<str name="mlt.fl">one, two, three </str>
<str name="mlt.mintf">2</str>
<str name="rows">10</str>
<str name="mlt.mindf">2</str>
<str name="mlt.boost">true</str>
</lst>
</requestHandler>
Define mlt defaults in your /select
handler.
<str name="mlt.fl">one, two, three </str>
<str name="mlt.mintf">2</str>
<str name="rows">10</str>
<str name="mlt.mindf">2</str>
<str name="mlt.boost">true</str>
Copy above into /select handler definition, paste in defaults section.
<lst name="defaults"> paste here </lst>
OR
update request handler name with /
like name="/mlt_tracks"
<requestHandler name="/mlt_tracks" class="solr.MoreLikeThisHandler">
And use /mlt_tracks
instead of /select to query
http://IP_ADDRESS:8983/solr/CORE_NAME/mlt_tracks?indent=on&q=one:ABC&mlt=true&mlt.fl=one,two,three&&rows=100&start=1&wt=json