You are viewing a plain text version of this content. The canonical link for it is here.
Posted to java-user@lucene.apache.org by "K.A.Hussain Ali" <Hu...@photoninfotech.com> on 2006/04/06 17:00:34 UTC

searching and indexing simultaneously...

HI all.

i am newbie to lucene

Do lucene provides any way to do indexing ,searching and deleting simultaneously ..

I hope we could do searching and indexing which means there can be multiple indexreader and only one indexwriter accessing the index..

Could we have two indexwriter working simultaneously...?

Any help is greatly appreciated
Thanks in advance.

regards
-Hussain


RE: searching and indexing simultaneously...

Posted by Ramana Jelda <ra...@ciao-group.com>.
 
Hi,
You are right. There can be multiple indexreaders but only one indexwriter
is advised. 

No, we can not use two indexwriters simultaneously.

Jelda

-----Original Message-----
From: K.A.Hussain Ali [mailto:Hussain@photoninfotech.com] 
Sent: Thursday, April 06, 2006 5:01 PM
To: java-user@lucene.apache.org
Subject: searching and indexing simultaneously...

HI all.

i am newbie to lucene

Do lucene provides any way to do indexing ,searching and deleting
simultaneously ..

I hope we could do searching and indexing which means there can be multiple
indexreader and only one indexwriter accessing the index..

Could we have two indexwriter working simultaneously...?

Any help is greatly appreciated
Thanks in advance.

regards
-Hussain



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


Re: searching and indexing simultaneously...

Posted by Otis Gospodnetic <ot...@yahoo.com>.
As far as I know, the best information about various Lucene concurrency rules, locks and locking is in the Lucene book (e.g. http://www.lucenebook.com/search?query=concurrency+rules ).

The short story is: use 1 IndexSearcher.  Get a new one when you detect index change.  Use 1 IndexWriter.  If you delete documents (via IndexReader), your IndexWriter needs to be closed, and vice versa.

Otis

----- Original Message ----
From: K.A.Hussain Ali <Hu...@photoninfotech.com>
To: java-user@lucene.apache.org
Sent: Thu 06 Apr 2006 11:00:34 AM EDT
Subject: searching and indexing simultaneously...

HI all.

i am newbie to lucene

Do lucene provides any way to do indexing ,searching and deleting simultaneously ..

I hope we could do searching and indexing which means there can be multiple indexreader and only one indexwriter accessing the index..

Could we have two indexwriter working simultaneously...?

Any help is greatly appreciated
Thanks in advance.

regards
-Hussain





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