You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@lucenenet.apache.org by Edward83 <ed...@gmail.com> on 2011/03/25 14:48:34 UTC
[Lucene.Net] Lucene.Net writing/reading synchronization
Hello!!!
Please tell me:
1.
Could I write (with IndexWriter) new documents into index while it is
opened for reading (withIndexReader)? Or I must close reading before
writing?
2.
Could I read/search documents (with IndexReader) in index while it is
opened for writing (withIndexWriter)? Or I must close writing before
reading?
3.
Is Lucene.Net thread safely or not? Or I must to write my own?
This question you can also find here
http://stackoverflow.com/questions/5420566/lucene-net-writing-reading-synchronization
Thank you very much!!!!
Eugene;)
Re: [Lucene.Net] Lucene.Net writing/reading synchronization
Posted by digy digy <di...@gmail.com>.
Yes, for all.
Lucene.Net is thread safe and you make indexing and searching at the same
time.
Just refer to Java documents to learn about indexwriter.GetReader,
indexreader.Reopen etc.
DIGY
On Fri, Mar 25, 2011 at 3:48 PM, Edward83 <ed...@gmail.com> wrote:
> Hello!!!
>
>
> Please tell me:
>
>
> 1.
>
> Could I write (with IndexWriter) new documents into index while it is
> opened for reading (withIndexReader)? Or I must close reading before
> writing?
> 2.
>
> Could I read/search documents (with IndexReader) in index while it is
> opened for writing (withIndexWriter)? Or I must close writing before
> reading?
> 3.
>
> Is Lucene.Net thread safely or not? Or I must to write my own?
>
>
> This question you can also find here
>
> http://stackoverflow.com/questions/5420566/lucene-net-writing-reading-synchronization
>
>
> Thank you very much!!!!
>
> Eugene;)
>