Uploaded image for project: 'Lucene - Core'
  1. Lucene - Core
  2. LUCENE-8285

FSTOrdPostingsFormat ironically does not support ord()

Details

    • Improvement
    • Status: Open
    • Major
    • Resolution: Unresolved
    • None
    • None
    • core/codecs
    • None
    • New

    Description

      Ironically, FSTOrdPostingsFormat has a TermsEnum.ord() that throws UnsupportedOperationException. There are TODOs here and some discussion in LUCENE-3069 (CC billy). 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?

      Attachments

        Issue Links

          Activity

            People

              Unassigned Unassigned
              dsmiley David Smiley
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated: