Issue Details (XML | Word | Printable)

Key: LUCENE-325
Type: Improvement Improvement
Status: Closed Closed
Resolution: Fixed
Priority: Minor Minor
Assignee: Michael McCandless
Reporter: John Wang
Votes: 0
Watchers: 1
Operations

If you were logged in you would be able to see more operations.
Lucene - Java

[PATCH] new method expungeDeleted() added to IndexWriter

Created: 15/Dec/04 08:55 AM   Updated: 11/Oct/08 12:49 PM
Return to search
Component/s: Index
Affects Version/s: CVS Nightly - Specify date in submission
Fix Version/s: 2.4

Time Tracking:
Not Specified

File Attachments:
  Size
Text File attachment.txt 2004-12-15 01:49 PM John Wang 2 kB
Text File IndexWriter.patch 2004-12-18 10:56 AM John Wang 3 kB
Text File IndexWriter.patch 2004-12-15 08:57 AM John Wang 112 kB
Text File Licensed for inclusion in ASF works LUCENE-325.patch 2008-02-09 03:20 PM Michael McCandless 14 kB
Java Source File TestExpungeDeleted.java 2004-12-15 02:13 PM John Wang 3 kB
Environment:
Operating System: Windows XP
Platform: All

Bugzilla Id: 32712
Resolution Date: 11/Feb/08 08:35 PM


 Description  « Hide
We make use the docIDs in lucene. I need a way to compact the docIDs in segments
to remove the "holes" created from doing deletes. The only way to do this is by
calling IndexWriter.optimize(). This is a very heavy call, for the cases where
the index is large but with very small number of deleted docs, calling optimize
is not practical.

I need a new method: expungeDeleted(), which finds all the segments that have
delete documents and merge only those segments.

I have implemented this method and have discussed with Otis about submitting a
patch. I don't see where I can attached the patch. I will do according to the
patch guidleine and email the lucene mailing list.

Thanks

-John

I don't see a place where I can



 All   Comments   Work Log   Change History   Subversion Commits      Sort Order: Ascending order - Click to sort in descending order