The documents reached disk as a close was performed on the NewIndexModifier and the index size grows, seem like the deleteable files registers the documents as deleted though, so a search returns nothing and an optimize deletes all of the documents. Maybe the new documents have the same docid as the deleted documents and so are registered as deleted.
----- Original Message ---- From: Ning Li <[EMAIL PROTECTED]> To: java-dev@lucene.apache.org Sent: Tuesday, August 29, 2006 5:00:17 PM Subject: Re: [jira] Commented: (LUCENE-565) Supporting deleteDocuments in IndexWriter (Code and Performance Results Provided) > (reopen), then perform a batch addDocuments. Then when a search is executed > nothing is returned, and after an optimize the index goes down to 1K. Seems What did you set maxBufferedDocs to? If it is bigger than the number of documents you inserted, the newly added documents haven't reached disk, therefore a search will return nothing. --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]