No, that's not changed. You must still reopen an IndexReader to see
changes to the index. An IndexReader always searches a point-in-time
snapshot of the index.
LUCENE-1044 does mean that you should call IndexWriter.commit() (or,
close the writer) to ensure all changes you've made become visible to
the reader.
Mike
Eric Diaz wrote:
> According to SVN history on the next version this will be available:
>
> LUCENE-1044: IndexWriter with autoCommit=true now commits (such
> that a reader can see the changes) far less often than it used to.
> Previously, every flush was also a commit. You can always force a
> commit by calling IndexWriter.commit(). Furthermore, in 3.0,
> autoCommit will be hardwired to false (IndexWriter constructors
> that take an autoCommit argument have been deprecated) (Mike
> McCandless)
>
> Does this mean that I won't need to reopen all the readers in order
> to see the index changes?
>
> Thanks
>
>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: java-user-unsubscribe@lucene.apache.org
> For additional commands, e-mail: java-user-help@lucene.apache.org
>
---------------------------------------------------------------------
To unsubscribe, e-mail: java-user-unsubscribe@lucene.apache.org
For additional commands, e-mail: java-user-help@lucene.apache.org
|