lucene-java-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Eric Jain" <Eric.J...@isb-sib.ch>
Subject Re: Incremental indexing
Date Mon, 09 Dec 2002 09:04:50 GMT
>    1. Open reader;
>    2. Delete all old documents;
>    3. Close reader;
>    4. Open writer;
>    5. Add all new documents;
>    6. Close writer.
> 
> If, before step one, you open another IndexReader, then you can continue 
> to use it for searches while the update is in progress.  If you then, 
> after step six, open a new IndexReader to use for searches, then no 
> searches will ever see the intermediate state when documents have been 
> deleted but not yet re-added.

Thanks! Now all that's missing is rollback :-)


--
Eric Jain


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


Mime
View raw message