lucene-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Alan Woodward <>
Subject Adding offsets to Spans and TermSpans
Date Fri, 24 Feb 2012 21:04:00 GMT

Following on from, does it make sense to
expose the startOffset and endOffset from DocsAndPositionsEnum in Spans and TermSpans?  I'm
writing some highlighter-like code that needs to emit exact offsets for complex boolean queries,
and Spans.getSpans seems like the natural place to get them.  The relevant patch is pretty

I also have a patch to add offsets to MemoryIndex, from the same bit of development.

Alan Woodward

View raw message