Lucene - Core
  1. Lucene - Core
  2. LUCENE-3443

Port 3.x FieldCache.getDocsWithField() to trunk

    Details

    • Type: Improvement Improvement
    • Status: Closed
    • Priority: Major Major
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 3.5, 4.0-ALPHA
    • Component/s: core/search
    • Labels:
      None
    • Lucene Fields:
      New

      Description

      [Spinoff from LUCENE-3390]

      I think the approach in 3.x for handling un-valued docs, and making it
      possible to specify how such docs are sorted, is better than the
      solution we have in trunk.

      I like that FC has a dedicated method to get the Bits for docs with field
      – easy for apps to directly use. And I like that the
      bits have their own entry in the FC.

      One downside is that it's 2 passes to get values and valid bits, but
      I think we can fix this by passing optional bool to FC.getXXX methods
      indicating you want the bits, and the populate the FC entry for the
      missing bits as well. (We can do that for 3.x and trunk). Then it's
      single pass.

      1. LUCENE-3443.patch
        194 kB
        Michael McCandless
      2. LUCENE-3443.patch
        195 kB
        Robert Muir
      3. LUCENE-3443.patch
        240 kB
        Michael McCandless

        Issue Links

          Activity

          No work has yet been logged on this issue.

            People

            • Assignee:
              Michael McCandless
              Reporter:
              Michael McCandless
            • Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:

                Development