[ https://issues.apache.org/jira/browse/LUCENE-3318?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13070126#comment-13070126 ]
Uwe Schindler edited comment on LUCENE-3318 at 7/24/11 9:17 AM: ---------------------------------------------------------------- Some note from the TokenmStream policeman: The TokenStream must call clearAttributes() always as first action unless it returns false (see docs), the positionIncrement is then also automatically 1. Also you should make the whole class PosTokenStream final, as you can/should never extend it. was (Author: thetaphi): Some note from the TokenmStream policeman: The TokenStream must call clearAttributes() always as first action unless it returns false (see docs), the positionIncrement is then also automatically 1 > Sketch out highlighting based on term positions / position iterators > -------------------------------------------------------------------- > > Key: LUCENE-3318 > URL: https://issues.apache.org/jira/browse/LUCENE-3318 > Project: Lucene - Java > Issue Type: Sub-task > Components: modules/highlighter > Affects Versions: Positions Branch > Reporter: Simon Willnauer > Assignee: Mike Sokolov > Fix For: Positions Branch > > Attachments: LUCENE-3318.patch > > > Spinn off from LUCENE-2878. Since we have positions on a large number of > queries already in the branch is worth looking at highlighting as a real > consumer of the API. A prototype is already committed. -- This message is automatically generated by JIRA. For more information on JIRA, see: http://www.atlassian.com/software/jira --------------------------------------------------------------------- To unsubscribe, e-mail: dev-unsubscr...@lucene.apache.org For additional commands, e-mail: dev-h...@lucene.apache.org