lucene-java-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Materna, Wolf-Dietrich (empolis B)" <Wolf-Dietrich.Mate...@empolis.com>
Subject AW: Incremental indexing
Date Thu, 05 Dec 2002 08:37:36 GMT
Hello,
> Currently, I use the following procedure to update an index 
> incrementally:
> 
>     1. Build document
>     2. Open index reader
>     3. Delete any previous version of the document using a key field
>     4. Close index reader
>     5. Open index writer
>     6. Add document to index
>     7. Close index writer
> 
>     Repeat
> 
> 
> Any ideas how this could be accomplished more efficiently AND easier?
If you want to update a set of documents, you can remove their previous
version first and then add them after that. In the mean time documents
of this set are temporaly not available. If you have to update a single
document and make the changes immediately public, I don't know a better 
solution than yours.
Regards,
	Wolf-Dietrich Materna
-- 

--
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