apache / apache/lucene

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

Open
#4,655 4 comments 0 reactions 1 assignee Claimed by @s1monw View on GitHub
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

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.