lucene-solr-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Mike Klaas <>
Subject Re: difficulty using SolrHighlighter with programmatic parameters
Date Tue, 06 Nov 2007 18:25:10 GMT
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).


View raw message