On 6-Nov-07, at 9:58 AM, Doug Daniels wrote:


I'm working on creating a custom RequestHandler plugin right now, and am
having some trouble getting it working with the SolrHighlighter.
Particularly, I'd like to specify whether to highlight, which fields to highlight, etc in the code rather than through the request parameters. I can't find a way to do that right now, as the doHighlighting method pulls SolrParams directly from the request, and SolrParams don't seem to support
modification.

I think it would work for me if doHighlighting took a SolrParams parameter,
rather than pulling it out of the request.  Any objections to that?

I think that would work, but there should be a version with the existing interface preserved. Several of the existing methods will have to be refactored to accept param + other stuff that SolrQueryRequest provides (like IndexSearcher, IndexReader, etc).

-Mike

Reply via email to