lucene-java-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Erick Erickson <erickerick...@gmail.com>
Subject Re: In Lucene, can I write to the index in a separate process from reading?
Date Wed, 08 Jul 2015 18:46:33 GMT
As I understand it, this should be fine as long as the webapp doesn't
attempt to index any documents.

And if you do try to write from the second process, you should get a
lock exception.

Best,
Erick

On Wed, Jul 8, 2015 at 11:39 AM, George Bailey <cjavapro@gmail.com> wrote:
> I know that the reader reads a point in time, and that it won't see any
> updates unless you re-open the reader 'after' you commit or close the
> writer.
>
> In my case, I will have the IndexWriter in a separate process, and the
> IndexReader running live in a webapp. I know this is thread safe, but is it
> safe to do this in a separate process, or do I need to close and disable
> all IndexReader features prior to updating the index in a separate process?

---------------------------------------------------------------------
To unsubscribe, e-mail: java-user-unsubscribe@lucene.apache.org
For additional commands, e-mail: java-user-help@lucene.apache.org


Mime
View raw message