On 4/4/06, Erik Hatcher <[EMAIL PROTECTED]> wrote:
> I would like to have highlighting of selected field(s) in Solr search
> results.  Certainly a custom request handler can do this, but I'm
> curious if the standard handler and configuration should evolve to
> handle the common need for search term highlighting,

Absolutely!

> and if so how would that ideally look in the configuration and search request?

Great question... and how would it look in the search results as well.
I haven't used highlighting yet in Lucene, so I'm not sure what the
best way to fit it into Solr would be.

I guess it's time to go read that part in LIA :-)

One thing right off the bat: I think highlighting probably needs the
stored fields...
To support streaming of large result sets, I don't retrieve all the
documents up front - it's actually done in the XML serializer.  That
may make things slightly more difficult.

It's probably best to focus on the ideal interface first (query
parameters as input format, and desired XML output format).

For the XML output format, we need to decide if the hilight info goes
in or after each <field>, in or after each <doc>, or in a separate
section altogether.  Also need to consider multivalued fields.

The current format for fields looks like this for single-valued fields:
  <field name="title">How now brown cow</field>
And this for multi-valued fields:
  <arr name="title"><str>This is the first title</str> <str>This is
the second</str> </arr>

-Yonik

Reply via email to