Mike Klaas wrote:
On 7/19/06, Andrew May <[EMAIL PROTECTED]> wrote:
(although I have
wondered whether it would be possible for the default highlighted
fields to be derived
from the query in some way).
It wouldn't be too hard to extract <field>:<term> queries in
StandardRequestHandler. Do you have anything specific in mind? Hoss
and I discussed using all analyzed stored fields as a reasonable
default.
I was sort of thinking that if the query was "frogs" then the default field would be
highlighted, but if the query was "+title:frogs +author:May" then title and author would
be highlighted. However, I don't know if it gets complicated with dynamic fields.
But if that's not a common requirement it could be worked around by
copying the field and
having different highlighting settings.
I think the best way to achieve this is to configure two separate
request handlers in solrconfig.xml with the same request handler class
but with different default parameters.
That hadn't occurred to me.
I'm going to work on the assumption that it's OK for some aspects of highlighting to only
be configurable in solrconfig.xml, and see what I can produce. I'll try to put together a
patch that can go in JIRA and then it can be discussed further.
-Andrew