On 6-Nov-07, at 11:13 AM, Doug Daniels wrote:
I could just add the SolrParams parameter to various methods and
leave the
IndexSearcher, IndexSchema, IndexReader, etc packaged inside the
SolrQueryRequest. I don't suspect that these parameters will need
to be
modified by plugin request handlers.
Is there a convention for this elsewhere in the code?
Well, I am wary of creating a disconnect where we are using _some_
values from SolrQueryRequest and ignoring others. It seems
inconsistent.
What exactly are you trying to accomplish? Can you not set the
parameters as fixtures in solrconfig.xml?
cheers,
-Mike
Thanks,
-Doug
Mike Klaas wrote:
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
--
View this message in context: http://www.nabble.com/difficulty-
using-SolrHighlighter-with-programmatic-parameters-
tf4759887.html#a13613688
Sent from the Solr - Dev mailing list archive at Nabble.com.