RE: delete and optimize

2005-12-08 Thread Mordo, Aviran (EXP N-NANNATEK)
Well the best way in my opinion is to: 1) open the IndexReader and delete some documents from the same index 2) close the IndexReader 3) open IndexWriter and index documents 4) optimize the indexWriter and close the indexWriter For best performance you want the optimization to be

RE: delete and optimize

2005-12-08 Thread Dan Liu
n an optimized index. So, the number of index files are the same as before the deletion. -Original Message- From: Mordo, Aviran (EXP N-NANNATEK) [mailto:[EMAIL PROTECTED] Sent: Thursday, December 08, 2005 1:16 PM To: java-user@lucene.apache.org Subject: RE: delete and optimize Well the be

RE: delete and optimize

2005-12-08 Thread Mordo, Aviran (EXP N-NANNATEK)
@lucene.apache.org Subject: RE: delete and optimize The document is indexed first. This is required by the application. Based on Lucene in Action", "Optimizaation" is to merge multiple index files together in order to reduce their number and thus minimize the time it takes to read at s

Re: delete and optimize

2005-12-08 Thread Michael D. Curtin
Mordo, Aviran (EXP N-NANNATEK) wrote: Optimization also purges the deleted documents, thus reduces the size (in bytes) of the index. Until you optimize documents stay in the index only marked as deleted. Deleted documents' space is reclaimed during optimization, 'tis true. But it can also be

RE: delete and optimize

2005-12-08 Thread Dan Liu
ot; file is gone, and Document number are reclaimed. -Original Message- From: Mordo, Aviran (EXP N-NANNATEK) [mailto:[EMAIL PROTECTED] Sent: Thursday, December 08, 2005 2:17 PM To: java-user@lucene.apache.org Subject: RE: delete and optimize Optimization also purges the deleted docume

RE: delete and optimize

2005-12-08 Thread Dan Quaroni
I also had to close the Directory, but that may not be true. -Original Message- From: Dan Liu [mailto:[EMAIL PROTECTED] Sent: Thursday, December 08, 2005 3:09 PM To: java-user@lucene.apache.org Subject: RE: delete and optimize The document is markded as "deleted" when rea

RE: delete and optimize

2005-12-08 Thread Dan Liu
From: Dan Quaroni [mailto:[EMAIL PROTECTED] Sent: Thursday, December 08, 2005 3:18 PM To: java-user@lucene.apache.org Subject: RE: delete and optimize I'm confused by what you mean - there is no difference between something being marked as deleted and deleted. (Since it's not removed