Re: Getting the character offset from highlighted fragments

2010-04-22 Thread Simon Wistow
On Thu, Apr 22, 2010 at 02:15:08AM +0100, me said: > It looks like org.apache.lucene.search.highlight.TextFragment has the > right information to do this (i.e textStartPos) Turns out that it doesn't seem to have the right information in that textStartPos always seems to be 0 (and textEndPos just

Getting the character offset from highlighted fragments

2010-04-21 Thread Simon Wistow
Having poked around little it doesn't look like there's an query param to turn this on but it'd be really useful if highlighted fragments could have a character offset return somehow - maybe something like Lorem ipsum dolor sit amet, consectetur adipisicing