Please help me on this issue. Please provide me suggestions what is missing to get the response from multiple solr shards in cloud.
On Tue, Nov 18, 2014 at 1:40 PM, Jilani Shaik <jilani24...@gmail.com> wrote: > Hi, > > When I tried to execute the mlt handler query on a shard it is giving > result if the documents exist on that shards. > > in below scenario, I have a cloud shards on localhost with ports 8181 and > 8191. where documents are distributed. if the mlt query document id belongs > to 8181 shard and the query hits to 8181 shard then only I am getting the > results. > > > No result > > http://localhost:8181/solr/collectionName/mlt?q=id:medl_24806189&fq=segment:medl&fl=id,owui_p&rows=100 > > Will give result > > http://localhost:8191/solr/collectionName/mlt?q=id:medl_24806189&fq=segment:medl&fl=id,owui_p&rows=100 > > *So the distributed search is not working for mlt handler(my assumption, > please correct). * > > Even I tried with the below > > > http://localhost:8181/solr/collectionName/mlt?q=owui_p:medl_24806189&fq=segment:medl&fl=id,owui_p&rows=100& > *shards.qt=/mlt&shards=localhost:8181/solr/,localhost:8191/solr/* > > > http://localhost:8181/solr/collectionName/mlt?q=owui_p:medl_24806189&fq=segment:medl&fl=id,owui_p&rows=100 > *&shards.qt=/mlt&shards=localhost:8181/solr/collectionName/,localhost:8191/solr/collectionName/* > > even I tried with select handler and with mlt as true also not working. > > http://localhost:8181/solr/collectionName/*select?mlt=true* > &q=owui_p:medl_24806189&fq=segment:medl&fl=id,owui_p&rows=100&distrib=true&mlt.fl=ti_w > > > MLT configuration from solrconfig.xml > > <!-- MoreLikeThis request handler --> > <requestHandler name="/mlt" class="solr.MoreLikeThisHandler"> > <lst name="defaults"> > <str name="mlt.fl">ti_w</str> > <str name="mlt.mintf">1</str> > <str name="mlt.mindf">2</str> > <str name="mlt.boost">true</str> > <str > name="shards">localhost:8181/solr/collectionName,localhost:8191/solr/collectionName</str> > <str name="shards.qt">/mlt</str> > <str name="mlt">true</str> > <str name="echoParams">all</str> > </lst> > </requestHandler> > > > > Please let me know what is the missing here to get the result in solr > cloud. > > Thanks, > Jilani >