You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Index Time Option: Add setStoreTermVectorPositions(true) to fields you wish to highlight that already use setStoreTermVectors(true)
Alternative Query Time Option: Subclass UnifiedHighlighter to override getFlags(String) and remove HighlightFlag.WEIGHT_MATCHES from the set returned by super.getFlags(field)
Test patch demonstrating problem in above linked mailing list thread
Version and environment details
No response
The text was updated successfully, but these errors were encountered:
Description
Summary of mailing list thread...
https://lists.apache.org/[email protected]
UnifiedHighlighter
w/DefaultPassageFormatter
setStoreTermVectors(true)
+setStoreTermVectorOffsets(true)
setStoreTermVectorPositions(true)
IndexOutOfBoundsException
can occur inDefaultPassageFormatter
->StringBuilder
when query and field includes multiple termsTermVectorOffsetStrategy
producingPassage
instances where matches are not in order (by start offset)Passage
API if this is allowedDefaultPassageFormatter
does not expect this (only the possibility that end/start will overlap)setStoreTermVectorPositions(true)
to fields you wish to highlight that already usesetStoreTermVectors(true)
UnifiedHighlighter
to overridegetFlags(String)
and removeHighlightFlag.WEIGHT_MATCHES
from the set returned bysuper.getFlags(field)
Test patch demonstrating problem in above linked mailing list thread
Version and environment details
No response
The text was updated successfully, but these errors were encountered: