lucene-dev mailing list archives

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

Following on from https://issues.apache.org/jira/browse/LUCENE-3684, 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
tiny.

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

Thanks,
Alan Woodward



Mime
View raw message