it seems, hl.snippets does what I'm after, also discussed here:

http://search-lucene.com/m/yxCOc1X0uY42/highlighting+multiple+occurrences&subj=highlighting+multiple+occurrences

http://wiki.apache.org/solr/*Highlighting*Parameters#hl.snippets<http://wiki.apache.org/solr/HighlightingParameters#hl.snippets>

Dmitry

On Mon, Jan 14, 2013 at 3:14 PM, Dmitry Kan <solrexp...@gmail.com> wrote:

> Hello!
>
> I'm playing with the regex feature of highlighting in SOLR. The regex I
> have is pretty simple and, given a keyword query, it hits in a few places
> inside each document.
> Is there a way of highlighting and returning individual fragments with
> this approach? That is, if the matches are found let's say in the
> beginning, middle and end parts of the document, then return only these
> three groups inside a highlighter snippet?
>
> If there isn't such a functionality, do you know, what would it take to
> implement one (solr/lucene 3.4)?
>
> Regards,
>
> Dmitry Kan
>

Reply via email to