IndexReader#isCurrent() should return true on a NRT reader if no deletes are applied and only deletes are present in IW [LUCENE-3581]
Open
affects-version:3.5
affects-version:4.0-ALPHA
legacy-jira-fix-version:4.9
legacy-jira-fix-version:6.0
legacy-jira-priority:Major
type:bug
- Dominant language
- Java
- Stars
- 3.6k
- Forks
- 1.4k
- Avg merge
- 2d 11h
- Merged PRs (30d)
- 88
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.
---
Migrated from [LUCENE-3581](https://issues.apache.org/jira/browse/LUCENE-3581) by Simon Willnauer (@s1monw), updated May 09 2016
Contributor guide
Assessment
This issue has not been assessed yet.