Friso van Vollenhoven wrote:
Hi,
I found this table at jGruru:
http://www.jguru.com/forums/view.jsp?EID=910778
Since the table seems to be about 2.5 years old, I was wondering if it is
still correct.
It says that I can concurrently delete and read a document. So if there
are two threads using one IndexReader instance, they could concurrently
read and delete a (possibly the same) document.
document(int) and delete(int) are synchronized methods, so they can be
used in different threads. However you'll get IllegalArgumentException
trying to retrieve deleted document.
And if the threads do not share a single IndexReader instance. Will the
reading thread still see the document when the deleting thread has deleted
(and commited) it (if both IndexReader instances were opened when the
document was not yet deleted).
reading IndexReader instance will not see changes until reopened. (also
this instance will be unable to delete documents as well)
Thanks to anyone who knows and answers,
Friso
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
Regards,
Volodymyr Bychkoviak
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]