You are viewing a plain text version of this content. The canonical link for it is here.
Posted to solr-user@lucene.apache.org by dan sutton <da...@gmail.com> on 2011/05/24 16:56:45 UTC

custom highlighting

Hi,

I'd like to make the highlighting work as follows:

length(all snippits) approx. 200 chars
hl.snippits = 2 (2 snippits)

e.g. if there is  onyl 1 snippet available, length <= 200chars
e.g. if there is >1 snippet, length each snippet == 100chars, so I
take the first 2 and get 200 chars

Is this possible with the regex fragmenter?

Or does anyone know of any contrib fragmenter that might do this?

Many thanks
Dan