Lucene - Core
  1. Lucene - Core
  2. LUCENE-2900

make applying deletes optional when pulling a new NRT reader

    Details

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

      Description

      Usually when you pull an NRT reader, you want all deletes to be applied.

      But in some expert cases you may not need it (eg you just want to validate that the doc was indexed). Since it's costly to apply deletes, and trivial to add this boolean (we already have a boolean internally), I think we should add it.

      The deletes are still buffered, and you can always later pull another reader (for "real" searching) with deletes applied.

      1. LUCENE-2900.patch
        19 kB
        Michael McCandless

        Activity

        Hide
        Michael McCandless added a comment -

        Simple patch. I'll commit shortly.

        Show
        Michael McCandless added a comment - Simple patch. I'll commit shortly.
        Hide
        Grant Ingersoll added a comment -

        Bulk close for 3.1

        Show
        Grant Ingersoll added a comment - Bulk close for 3.1

          People

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

            Dates

            • Created:
              Updated:
              Resolved:

              Development