FSTOrdPostingsFormat ironically does not support ord() [LUCENE-8285]
- Dominant language
- Java
- Stars
- 3.6k
- Forks
- 1.4k
- Avg merge
- 2d 11h
- Merged PRs (30d)
- 88
Description
Ironically, FSTOrdPostingsFormat has a TermsEnum.ord() that throws UnsupportedOperationException. There are TODOs here and some discussion in #4142 (CC @sleepsort). Isn't supporting ord() entirely the point of this postings format?
Additionally, if ord() was supported,couldn't TermState be effectively the ordinal, thus making it lighter-weight/cheaper?
---
Migrated from [LUCENE-8285](https://issues.apache.org/jira/browse/LUCENE-8285) by David Smiley (@dsmiley)
Linked issues:
- #4142
Contributor guide
Research direction
Start with FSTOrdPostingsFormat and its TermsEnum.ord() implementation, then read the discussion in linked issue #4142. Done means deciding and implementing whether ord() should be supported and whether TermState can safely be represented by the ordinal, with tests covering the resulting behavior.
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