Re: Standard highlighter returns whole document as a fragment

2015-08-11 Thread Duke DAI
Seems we are encountering same problem. (thread: bug of highlighter/SimpleSpanFragmenter, returned longer fragment than expected?) When debugging, your fragmenter is SimpleSpanFragmenter? isNewFragment() returns true due to below logic? boolean isNewFrag = offsetAtt.endOffset() >= (fragmentSize * c

Standard highlighter returns whole document as a fragment

2015-08-06 Thread Robert Alexander
Hey everyone, I ran into an issue with the standard highlighter in 4.10.4 and was hoping that someone could help. I'm attempting to fragment a result based on a SpanNearQuery. If the words in the query are next to each other, the fragmenter will often return one large result containing the entire