Updating Lucene index from two different threads in a web application
Posted
by Jimmy
on Stack Overflow
See other posts from Stack Overflow
or by Jimmy
Published on 2009-08-31T05:23:54Z
Indexed on
2010/03/29
21:03 UTC
Read the original article
Hit count: 579
lucene
|lucene.net
Hi,
I've a .net web application which uses Lucene.net for company search functionality. When registered users add a new company,it is saved to database and also gets indexed in Lucene based company search index in real time.
When adding company in Lucene index, how do I handle use case of two or more logged-in users posting a new company at the same time?Also, will both these companies get indexed without any file lock, lock time out, etc. related issues?
Would appreciate if i could help with code as well.
Thanks.
© Stack Overflow or respective owner