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

MultiReader should not use PQ for its Term/sEnum if it has only 1 reader

Details

    • Improvement
    • Status: Closed
    • Major
    • Resolution: Fixed
    • None
    • 4.0-ALPHA
    • core/index
    • None
    • New

    Description

      Related to LUCENE-2130....

      Even though we've switched to segment-based searching, there are still times when the Term/sEnum is used against the top-level reader. I think Solr does this, and from LUCENE-2130, certain rewrite modes of MTQ will do this as well.

      Currently, on an optimized index, MTQ is still using a PQ to present the terms, which is silly because this just adds a sizable amount of overhead. In such cases we should simply delecate to the single segment.

      Note that the single segment can have deletions, and we should still delegate. Ie, the index need not be optimized, just have a single segment.

      Attachments

        1. LUCENE-2136-trunk.patch
          4 kB
          Michael McCandless
        2. LUCENE-2136-flex.patch
          3 kB
          Michael McCandless

        Activity

          People

            mikemccand Michael McCandless
            mikemccand Michael McCandless
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: