Details
-
Bug
-
Status: Closed
-
Major
-
Resolution: Fixed
-
3.6.1, 4.0, 4.1, 4.2, 4.2.1
-
None
Description
under some circumstances the BaseFragmentsBuilder genereates a StringIndexOutOfBoundsException inside the makeFragment method.
The starting offset is higher than the end offset.
I did a small patch checking the offsets and posted it over there at Stackoverflow: http://stackoverflow.com/questions/12456448/solr-highlight-bug-with-usefastvectorhighlighter
The code in 4.0 seems to be the same as in 3.6.1
Example how to reproduce the behaviour:
There is a word called "www.DAKgesundAktivBonus.de" inside the index. If you search for "dak bonus" some offset calculations went wrong.
Attachments
Issue Links
- incorporates
-
LUCENE-7016 Solr/Lucene 5.4.1: FastVectorHighlighter still fails with StringIndexOutOfBoundsException
- Open
- is related to
-
LUCENE-4641 Fix analyzer bugs documented in TestRandomChains
- Patch Available
- is superceded by
-
LUCENE-4899 FastVectorHighlihgter fails with SIOOB if single phrase or term is > fragCharSize
- Closed
- relates to
-
SOLR-4660 FastVectorHighlighter: String Out of bounds exception when phrase query with a fairly big slop is used (pf is used in edismax)
- Resolved