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

IndexReader#isCurrent() should return true on a NRT reader if no deletes are applied and only deletes are present in IW

Details

    • Bug
    • Status: Open
    • Major
    • Resolution: Unresolved
    • 3.5, 4.0-ALPHA
    • 4.9, 6.0
    • None
    • None
    • New

    Description

      I keep forgetting about this, I better open an issue. If you have a NRT reader without deletes applied it should infact return true on IR#isCurrent() if the IW only has deletes in its buffer ie. no documents where updated / added since the NRT reader was opened. Currently if there is a delete coming in we force a reopen which does nothing since deletes are not applied anyway.

      Attachments

        Activity

          People

            simonw Simon Willnauer
            simonw Simon Willnauer
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated: