IndexReader.isCurrent() lies if documents were only removed by latest commit
Key: LUCENE-2634
URL: https://issues.apache.org/jira/browse/LUCENE-2634
Project: Lucene - Java
[
https://issues.apache.org/jira/browse/LUCENE-2634?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Nikolay Zamosenchuk updated LUCENE-2634:
Attachment: TestIsCurrent.java
IndexReader.isCurrent() lies if documents were
[
https://issues.apache.org/jira/browse/LUCENE-2634?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Michael McCandless reassigned LUCENE-2634:
--
Assignee: Michael McCandless
IndexReader.isCurrent() lies if documents were
I'd expect this behavior if you haven't re-opened your underlying
readers after the commit. No index changes are visible after
a reader has been opened.
Your steps to reproduce do not show any reopen, what happens
when you do?
Best
Erick
On Wed, Sep 8, 2010 at 3:54 AM, Nikolay Zamosenchuk
Actually, IR.isCurrent() is supposed to return false if any changes
have been committed to the index since the IR was opened.
Mike
On Wed, Sep 8, 2010 at 8:11 AM, Erick Erickson erickerick...@gmail.com wrote:
I'd expect this behavior if you haven't re-opened your underlying
readers after the
Thanks, ya' learn something new every day G. Also, I hadn't seen
the other responses, coffee hadn't kicked in.
Erick
On Wed, Sep 8, 2010 at 8:30 AM, Michael McCandless
luc...@mikemccandless.com wrote:
Actually, IR.isCurrent() is supposed to return false if any changes
have been committed to
[
https://issues.apache.org/jira/browse/LUCENE-2634?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Michael McCandless resolved LUCENE-2634.
Fix Version/s: 2.9.4
3.0.3
3.1
[
https://issues.apache.org/jira/browse/LUCENE-2634?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanelfocusedCommentId=12907233#action_12907233
]
Nikolay Zamosenchuk commented on LUCENE-2634:
-
Thanks for quick reaction and
[
https://issues.apache.org/jira/browse/LUCENE-2634?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanelfocusedCommentId=12907234#action_12907234
]
Michael McCandless commented on LUCENE-2634:
Thank you for discovering