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 Kim <ww...@yahoo.com> on 2004/11/16 16:11:18 UTC

Searching and indexing from different processes (applications)

Hi.

I just started to play around with Lucene.  I was
wondering if searching and indexing can be done
simultaneously from different processes (two different
processes.)  For example, searching is serviced from a
web appliation, while indexing is done periodically
from a stand-alone application.

What would be the best way to implement this?  

Thanks.


	

	
		
___________________________________
최대 100MB, 더 이상 용량 고민없는 - 야후! 메일                 (http://mail.yahoo.co.kr)
최신곡, 추천곡, 가요, OST, 팝송, 뮤직비디오 - 야후! 비트박스  (http://kr.music.yahoo.com)
최신 휴대폰 정보, 벨소리, 캐릭터, 문자메세지 - 야후! 모바일   (http://kr.mobile.yahoo.com)

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


Re: Searching and indexing from different processes (applications)

Posted by Morus Walter <mo...@tanto.de>.
K Kim writes:

> I just started to play around with Lucene.  I was
> wondering if searching and indexing can be done
> simultaneously from different processes (two different
> processes.)  For example, searching is serviced from a
> web appliation, while indexing is done periodically
> from a stand-alone application.
> 
> What would be the best way to implement this?  
> 
simply do it.
The only things you have to keep in mind, is
a) you cannot have more than one process/thread writing to lucene
b) an index reader/search will not see updates unless it's closed
   and reopened.

So all you need is your web app and your indexing process and some
way to inform the web app after indexing, that it should reopen the index.

Morus

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