lucene-solr-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Philippe Soares <>
Subject FastVectorHighlighter problem with large fields
Date Fri, 13 Nov 2015 21:57:07 GMT
I have documents with very large fields which I want to highlight.
When a word hits in the far end of those fields, the FastVectorHighlighter
is unable to pull any fragment.
I'm able to pull fragments using the original highlighter and setting
maxAnalyzedChars to a very high value, but I can't find any combination
that would make this work with the FastVectorHighlighter.

I tried setting fragSize = 0 and fragListBuilder = "single", but it's still
not returning any snippet. Also my requirement is to pull a single smaller
fragment (say around 300 chars) even if the match is at the end of a large

I don't want to use the original highlighter because it's putting the <em>
tags around each highlighted word instead of around the first and last
highlighted word.

Is there any way to achieve this with the FVH ?

Thanks in advance for any help you could provide.


  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message