lucene-solr-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Nayan Gowda <>
Subject Using MoreLikeThisHandler
Date Fri, 29 Jan 2010 05:28:30 GMT
     I am trying to work with the MoreLikeThisHandler inorder to get the
similar documents.
Here is my configuration in Schema.xml.....


<field name="id" type="sint" indexed="true" stored="true" required="true"

<field name="title" type="text" indexed="true" stored="false" termVectors="

<field name="keywordGroup" type="string" indexed="true" stored="false"
multiValued="true" termVectors="true"/>

<field name="tagText" type="text" indexed="true" stored="true" multiValued="
true" default="" termVectors="true"/>


n Configuration in solrconfig.xml

<requestHandler name="/mlt" class="solr.MoreLikeThisHandler">

<lst name="defaults">

<str name="mlt.fl">title,tagText,keywordGroup</str>

<str name="mlt.qf">title^1.5 tagText keywordGroup^0.5</str>

<str name="mlt.mintf">1</str>

<str name="mlt.mindf">1</str>

<str name="mlt.boost">true</str>

<str name="mlt.match.include">true</str>


and i fire the query like this....,tagText,keywordGroup<,tagText><http://localhost:8983/solr/mlt?q=id:100>

I do get some results but not accurate though..
Now i have a couple of queries.
1. Is this configuration is correct for getting the similar documents.

2. Is it poosible to support different boost for each of the "keywordGroup"?
If so please give me hint how can i achieve this?

Nayan K

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