Dan:

The disconnect here seems to be that these examples urls on the 
MoreLikeThisHandler wiki page assume a "/mlt" request handler exists, but 
no handler by that name has ever actually existed in the solr example 
configs.  (the wiki page doesn't explicitly state that those URLs will 
work with the example configs, but it certianly suggests it) 

Instead of copying the *default* request handler config (using 
SearchHandler) verbatim, you need to create a handler declaration that 
uses the MoreLikeThisHandler class, ala...

  <requestHandler name="/mlt" class="solr.MoreLikeThisHandler">
  </requestHandler>

...you can add more configuration (to specify things like default params 
and what not) but that's the minimum config that you need to get the MLT 
Handler up and running.

I've updated the wiki page to reflect this -- thanks for helping to catch 
the mistake

: > > > > http://wiki.apache.org/solr/MoreLikeThisHandler
: > > > > 
: > > > > How should the request handler / solrconfig be setup?
: > > > > 
: > > > > I enabled streaming and I set a requestHandler up by copying the
: > > > > default
: > > > > request handler and I changed the name to:
: > > > > 
: > > > > name="/mlt"
: > > > > 
: > > > > but when accessing the url like the example on the wiki I get a NPE
: > > > > because
: > > > > q is not supplied


-Hoss

Reply via email to