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

FSTOrdPostingsFormat ironically does not support ord()

    XMLWordPrintableJSON

    Details

    • Type: Improvement
    • Status: Open
    • Priority: Major
    • Resolution: Unresolved
    • Affects Version/s: None
    • Fix Version/s: None
    • Component/s: core/codecs
    • Labels:
      None
    • Lucene Fields:
      New

      Description

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

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

                Dates

                • Created:
                  Updated: