lucene-java-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Erik Hatcher <>
Subject Re: updating the data in Lucene
Date Tue, 23 May 2006 13:28:48 GMT

On May 23, 2006, at 8:15 AM, Alberto Marquÿffffe9s wrote:
> I have a question about like updating the data in Lucene. Supposing  
> that I have indexed a directory if I want to refresh index (to  
> return to index single files that has been modified). In order to  
> maintain the data updated. There is faster form to do the one that  
> using: IndexWriter(indexDir, new Analizer(), true); indexaria all  
> the files again.

absolutely.  you'll need to create the logic to do incremental  
indexing, but lucene supports deleting and adding documents.  an  
"update" consists of locating the document to be updated in the  
index, deleting it, and re-adding the document.

	- erik

To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message