lucene-solr-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Neeti Raj" <neeti...@gmail.com>
Subject Re: Implementing MoreLikeThis in Ruby
Date Wed, 09 Jul 2008 07:33:24 GMT
Hi Koji

Thanks for clarifying my understanding about MoreLikeThis.

After your response and reading from Solr Wiki,  I am now successfully using
MoreLikeThis as follows -

   - Using StandardRequestHandler. Removed MoreLikeThisHandler in
   solrconfig.xml.


   -  Modified the query to be -
   http://localhost:8983/solr/select?q=BBT&mlt=true&mlt.fl=*channel_name_t*
   &mlt.mindf=1&mlt.mintf=1<http://localhost:8983/solr/select?q=BBT&mlt=true&mlt.fl=channel_name&mlt.mindf=1&mlt.mintf=1>


   - as I am using Acts_as_solr for talking to Solr which generates dynamic
      fields and hence mlt.fl=channel_name_t


Thanks again for guiding
Neeti

On Mon, Jul 7, 2008 at 8:40 PM, Koji Sekiguchi <koji@r.email.ne.jp> wrote:

> Neeti,
>
> Do you know:
>
> There are two ways to access MoreLikeThis from solr: from the
> MoreLikeThisHandler
> or with the StandardRequestHandler.
> http://wiki.apache.org/solr/MoreLikeThis
>
> You set MoreLikeThisHandler in your 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>
>
> but you were using StandardRequestHandler in your request:
>
> >
> http://localhost:8983/solr/select?q=BBT&mlt=true&mlt.fl=channel_name&mlt.mindf=1&mlt.mintf=1
>
> If you want to use MoreLikeThisHandler you set in your solrconfig.xml,
> specify /mlt
> instead of /select in your request url.
>
> Koji
>
>
>

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