lucene-solr-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Neeti Raj" <neeti...@gmail.com>
Subject Implementing MoreLikeThis in Ruby
Date Fri, 04 Jul 2008 07:05:11 GMT
Hi All

Being new to Solr, I am having difficulty trying to figure out how to
use *MoreLikeThis
*feature from my* ruby project*.

I have made the following changes to enable mlt but have been unsuccessful
so far-

 >*Using Solr nightly build dated 1 July 2008*

*SolrConfig.xml*

   <requestHandler name="/mlt" class="solr.MoreLikeThisHandler">
     <lst name="defaults">
       <str name="mlt.fl">channel_name</str>
       <int name="mlt.mindf">1</int>
     </lst>
   </requestHandler>

*schema.xml*
   <!--Added for Morelikethis -->
   <field name="channel_name" type="text" indexed="true" stored="true"
omitNorms="true" termVectors="true" />

*Here is my query for mlt -

*
http://localhost:8983/solr/select?q=BBT&mlt=true&mlt.fl=channel_name&mlt.mindf=1&mlt.mintf=1

*- Response xml has no records in moreLikeThis section and 2 records in
results.

Any help on implementing MLT in ruby would be highly appreciated...

Thanks
Neeti
*

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message