lucene-java-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Michael McCandless <luc...@mikemccandless.com>
Subject Re: Index Concurrent access
Date Tue, 16 Jun 2009 09:59:36 GMT
Concurrency using multiple threads in a single JRE is perfectly fine
and strongly encouraged, since modern hardware is very concurrent.

But, concurrent access via different JREs is not supported by Lucene.
Lucene's write lock will protect the index against such cases, but if
you bypass the write lock then you will easily corrupt the index if
two writers are opened at once.

Mike

On Tue, Jun 16, 2009 at 5:21 AM, Manish Joshi<mjoshi@zedo.com> wrote:
> Concurrently adding updating deleting may not be good idea.It may corrupt
> the index
> -Manish B. Joshi
>
> On Tue, Jun 16, 2009 at 2:33 PM, João Silva <galaio.silva@gmail.com> wrote:
>
>> Hi,
>> how can i access the index in a concurrently way,
>> so i can perform add/update/delete documents concurrently?
>>
>> Cheers,
>> João
>>
>> --
>> Cumprimentos,
>> João Carlos Galaio da Silva
>>
>
>
>
> --
> Manish Joshi
> Adserving Team
> Zedo India
>

---------------------------------------------------------------------
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