Index format to store position length per position [LUCENE-4312]
- Dominant language
- Java
- Stars
- 3.6k
- Forks
- 1.4k
- Avg merge
- 2d 11h
- Merged PRs (30d)
- 88
Description
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.
---
Migrated from [LUCENE-4312](https://issues.apache.org/jira/browse/LUCENE-4312) by Gang Luo, 6 votes, updated Oct 26 2021
Attachments: [positionLength-postings.patch](https://apache.github.io/lucene-jira-archive/attachments/LUCENE-4312/positionLength-postings.patch)
Contributor guide
Research direction
Start by reviewing the attached positionLength-postings.patch and the Codec APIs mentioned in the issue, then trace how TokenStreams expose PositionLengthAttribute. Done means the index format and related APIs consistently store and retrieve an integer position length for each position, with the relevant indexing behavior covered by tests identified during that review.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- java
- Domain
- search
- Issue type
- Feature
- Difficulty
- 5/5
- Estimated time
- Over a week
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 25/100