lucene-solr-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "sumanta.pakira@wipro.com" <sumanta.pak...@wipro.com>
Subject How to get MoreLikeThis result
Date Mon, 09 Mar 2015 14:05:50 GMT
I'm trying to understand how Solr MorelIkeThis works. Steps I've done -

1. In schema.xml I've written -
<field name="path_exact" type="string" indexed="true" stored="true"
termVectors="true"/>

<field name="title" type="text_general" indexed="true" stored="true"
multiValued="true" termVectors="true"/>

2. Mentioned <uniqueKey>path_exact</uniqueKey>



3. Created index in solr by using below command -

{"path_exact":"id1","title":"x1"}

{"path_exact":"id2","title":"x12"}

4. Now when I'm trying to hit the below url then it return result but I'm
not able to understand what does it mean exactly? Is it not able to find
morelikethis item for id1 and id2? If, yes, then what I'm missing here?

http://:/solr/collection2/select?q=x1*&mlt=true&mlt.fl=title&wt=xml

Result -

 <lst name="moreLikeThis">
     <result name="id1" numFound="0" start="0"/>
    <result name="id2" numFound="0" start="0"/>
Thanks for your help!



--
View this message in context: http://lucene.472066.n3.nabble.com/How-to-get-MoreLikeThis-result-tp4191853.html
Sent from the Solr - User mailing list archive at Nabble.com.

Mime
View raw message