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

Add block tree postings format that supports term ords

    Details

    • Type: Improvement
    • Status: Resolved
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 4.10, 6.0
    • Component/s: modules/other
    • Labels:
      None
    • Lucene Fields:
      New

      Description

      BlockTree is our default terms dictionary today, but it doesn't
      support term ords, which is an optional API in the postings format to
      retrieve the ordinal for the currently seek'd term, and also later
      seek by that ordinal e.g. to lookup the term.

      This can possibly be useful for e.g. faceting, and maybe at some point
      we can share the postings terms dict with the one used by sorted/set
      DV for cases when app wants to invert and facet on a given field.

      The older (3.x) block terms dict can easily support ords, and we have
      a Lucene41OrdsPF in test-framework, but it's not as fast / compact as
      block-tree, and doesn't (can't easily) implement an optimized
      intersect, but it could be for fields we'd want to facet on, these
      tradeoffs don't matter. It's nice to have options...

        Attachments

        1. LUCENE-5819.patch
          231 kB
          Michael McCandless
        2. LUCENE-5819.patch
          231 kB
          Michael McCandless

          Activity

            People

            • Assignee:
              mikemccand Michael McCandless
              Reporter:
              mikemccand Michael McCandless
            • Votes:
              1 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: