: I was thinking about the same thing. It shouldn't be too difficult to
: subclass SolrRequestHandler and build a special
: HighlightingRequestHandler that uses the builtin highlighting utils to
: do the job. I wonder if it's possible to get access to the http request
: body inside a SolrRequestHandler subclass. (The raw text to be
: highlighted would have to be passed to solr as body in an http request).
: Storing the raw text in the solr index is a reasonable solution for
: small indexes only.

actually ... there is some experimental stuff on the trunk that Ryan
contributed recently that adds a new dispatcher for executing request
hanlders... one of the perks of this dispatcher is a new concept of
"ContentStreams" that can be made available to SolrRequestHandlers either
as part of hte orriginla HTTP request (post body or multipart/* file
uploads depending on mime-type) or as a URL refrenced in the request
params.

take a look at the nightly build javadocs for more info about the
ContentStream interface (there is an Interable of them in
SolrQueryRequest) ... the way to get your SOlrRequestHandler to be
processed by the dispatcher is to register it with a name starting with a
slash which dicates the URL (so instead of /solr/update?qt=/foo you would
use /solr/foo)

there are some examples in example solrconfig ... look for /update/xml and
/debug/dump)



-Hoss

Reply via email to