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
ration
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?
Ap
nts, thus reduces the size
(in bytes) of the index. Until you optimize documents stay in the index
only marked as deleted.
-----Original Message-
From: Dan Liu [mailto:[EMAIL PROTECTED]
Sent: Thursday, December 08, 2005 2:00 PM
To: java-user@lucene.apache.org
Subject: RE: delete and optimize
from the
index until optimization)
I've found that unless I close(), the document isn't even marked for
deletion. And if I recall, I think I also had to close the Directory,
but that may not be true.
-----Original Message-
From: Dan Liu [mailto:[EMAIL PROTECTED]
Sent: Thursday, Dece