Hi Elaine, The first thing that comes to my mind is that neither the content nor the term vectors of "text" and "category_text" fields are being stored. Check the name of the parameter used to store the term vectors, which actually is "termVectors" and not "term_vectored" (see http://wiki.apache.org/solr/SchemaXml#Expert_field_options).
Try changing that and tell us if it worked! Regards, *Juan* On Thu, Jul 7, 2011 at 4:44 PM, Elaine Li <elaine.bing...@gmail.com> wrote: > 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 >