Hi Folks,

This is my configuration for mlt in solrconfig.xml
<requestHandler name="/mlt" class="org.apache.solr.handler.MoreLikeThisHandler">
    <lst name="defaults">
      <str name="mlt.fl">name,text,category_text</str>
      <int name="mlt.mintf">2</int>
      <int name="mlt.mindf">1</int>
      <int name="mlt.minwl">3</int>
      <int name="mlt.maxwl">1000</int>
      <int name="mlt.maxqt">50</int>
      <int name="mlt.maxntp">5000</int>
      <bool name="mlt.boost">true</bool>
      <str name="mlt.qf">name,text,category_text</str>
      <str name="mlt.interestingTerms"></str>
    </lst>
</requestHandler>

I also defined the three fields to have term_vectored attribute in schema.xml
<field name="name" type="text_nostem" indexed="true" stored="true"
term_vectored="true"/>
<field name="text" type="text_nostem" indexed="true" stored="false"
multiValued="true" term_vectored="true"/>
<field name="category_text" type="text_strip_id" indexed="true"
stored="false" multiValued="true" term_vectored="true"/>

When i submit the query
"http://localhost:8983/solr/mlt?q=id:69134&mlt.count=10";, the return
only contains one document with id=69134.

Does anyone know or can guess what I missed? Thanks.

Elaine

Reply via email to