That's it. Thank you!
I thought mlt was available by default. I was wrong.

On Tue, Jun 1, 2010 at 8:22 AM, Ahmet Arslan <iori...@yahoo.com> wrote:
>> I have some experience using MLT with
>> the StandardRequestHandler with Python
>> but I can't figure out how to do it with solrj. It seems
>> that to do
>> MLT with solrj I have
>> to use MoreLikeThisRequestHandler and there seems no way to
>> use
>> StandardRequestHandler for MLT with solrj (please correct
>> me if I'm wrong.)
>>
>> So I try to test it by following this page:
>> http://wiki.apache.org/solr/MoreLikeThisHandler
>> but I get this error:
>>
>> HTTP ERROR: 404
>> NOT_FOUND
>> RequestURI=/solr/mlt
>>
>> Do I need to do something in the config file before I can
>> use MLT?
>
> Did you register /mlt in your solrconfig.xml?
>
> <requestHandler name="/mlt" 
> class="org.apache.solr.handler.MoreLikeThisHandler">
> <lst name="defaults">
> <str name="mlt.interestingTerms">list</str>
> </lst>
> </requestHandler>
>
> you can invoke it with SolrQuery.set("qt", "/mlt");

Reply via email to