[ https://issues.apache.org/jira/browse/LUCENE-4312?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16881195#comment-16881195 ]
Michael McCandless commented on LUCENE-4312: -------------------------------------------- +1 to build on payloads, today, to break the chicken/egg situation. This should just be a {{TokenFilter}} that converts {{PositionLengthAttribute}} into payloads? Then [~mgibney] could contribute query-time code that can decode these payloads and implement correct positional queries. Once these prove useful we can circle back later and optimize how we store position lengths in the index. > Index format to store position length per position > -------------------------------------------------- > > Key: LUCENE-4312 > URL: https://issues.apache.org/jira/browse/LUCENE-4312 > Project: Lucene - Core > Issue Type: Improvement > Components: core/codecs > Affects Versions: 6.0 > Reporter: Gang Luo > Priority: Minor > Labels: Suggestion > Original Estimate: 72h > Remaining Estimate: 72h > > Mike Mccandless said:TokenStreams are actually graphs. > Indexer ignores PositionLengthAttribute.Need change the index format (and > Codec APIs) to store an additional int position length per position. -- This message was sent by Atlassian JIRA (v7.6.3#76005) --------------------------------------------------------------------- To unsubscribe, e-mail: dev-unsubscr...@lucene.apache.org For additional commands, e-mail: dev-h...@lucene.apache.org