lucene-solr-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From jlist9 <jli...@gmail.com>
Subject Re: MoreLikeThis: /solr/mlt NOT_FOUND
Date Wed, 02 Jun 2010 06:51:06 GMT
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 <iorixxx@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");

Mime
View raw message