Hi Nayan,

Your configuration looks good.
Can you expand on your second question when you say each keywordGroup do you mean individual values in the field? A good way to see what is going on under the hood is to use the analyizer in the admin interface

Regards,

Dave

On 29 Jan 2010, at 05:28, Nayan Gowda <nayan.go...@gmail.com> wrote:

Hi,
I am trying to work with the MoreLikeThisHandler inorder to get the
similar documents.
Here is my configuration in Schema.xml.....

<fields>

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

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

<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"/>

</fields>

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>

</lst>
</requestHandler>


and i fire the query like this....
http://10.99.82.12:8080/Dev/mlt/?q=id:7735&mlt.mindf=1&mlt.mintf=1&mlt.boost=true&mlt.match.include=true&mlt.fl=title,tagText,keywordGroup <http://10.99.82.12:8080/Dev/mlt/?q=id:7735&mlt.mindf=1&mlt.mintf=1&mlt.boost=true&mlt.match.include=true&mlt.fl=title,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?

Thanks,
Nayan K

Reply via email to