lucene-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "John Wang" <john.w...@gmail.com>
Subject index reopen question
Date Wed, 09 Apr 2008 16:57:18 GMT
Hi:
    Have been reading the 2.3.1 release code and have a few questions
regarding indexReader reopen:

1)  looking at the code:

    if (this.hasChanges || this.isCurrent()) {

      // the index hasn't changed - nothing to do here

      return this;

    }


   Shouldn't it be !this.hasChanges?


2) FilterIndexReader calls the ensureOpen() method from the super class
instead of overriding the method and call the inner reader's ensureOpen, is
that expected?


3) When you reopen an index, the inner reference count is not updated, is
that ok?


Thanks


-John

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message