No need to even write a new ReqHandler if you're using 1.3: 
http://wiki.apache.org/solr/SearchComponent

On Oct 3, 2008, at 4:13 PM, Brian Whitman wrote:

Not sure if this is possible or easy: I want to make a requestHandler that acts just like select but does stuff with the output before returning it to
the client.
e.g. 
http://url/solr/myhandler?q=type:dog&sort=legsdesc&shards=dogserver1;dogserver2

When myhandler gets it, I'd like to take the results of that query as if I sent it to select, then do stuff with the output before returning it. For example, it would add a field to each returned document from an external
data store.

This is sort of like an UpdateRequestProcessor chain thing, but for the
select side. Is this possible?

Alternately, I could have my custom RequestHandler do the query. But all I have in the RequestHandler is a SolrQueryRequest. Can I pass that along to
something and get a SolrDocumentList back?

--------------------------
Grant Ingersoll

Lucene Helpful Hints:
http://wiki.apache.org/lucene-java/BasicsOfPerformance
http://wiki.apache.org/lucene-java/LuceneFAQ








Reply via email to