lucene-solr-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Ahmet Arslan <iori...@yahoo.com>
Subject Re: MoreLikeThis: /solr/mlt NOT_FOUND
Date Tue, 01 Jun 2010 15:22:18 GMT
> 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