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
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
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
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
@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
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
that last operation
HTH
Aviran
http://www.aviransplace.com
-Original Message-
From: Dan Liu [mailto:[EMAIL PROTECTED]
Sent: Thursday, December 08, 2005 11:24 AM
To: java-user@lucene.apache.org
Subject: delete and optimize
Hi,
What is the difference between following approaches
Hi,
What is the difference between following approaches?
Approach1
1) open IndexWriter and index documents
2) optimize the indexWriter and close the indexWriter
3) open the IndexReader and delete some documents from the same
index
4) close the IndexReader
Approach2