lucene-java-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Rob Nikander <>
Subject Consistent colors from highlighter, multiple fields?
Date Mon, 25 Aug 2014 16:41:38 GMT

I'm using FastVectorHighlighter, and I wanted to get highlights from
multiple fields that matched, so I called `highlighter.getBestFragment` for
each field. It returns null if it had nothing for that field.  The problem
is the colors don't match, so it looks confusing.  For example, I search
for "apple orange", and my HTML shows the term "apple" in green in the
field1, but red in the field2.

Any recommendations on how to fix this?


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