take a look at the SearchComponent interface:
http://wiki.apache.org/solr/SearchComponent
with that, you can inject extra fields into each document before
passing them on
ryan
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?