|
Either this Bugzilla diff is not working properly, or you've made a number of
other more stylistic changes to IndexWriter.java, which make it very hard to see the real change you made. Could you provide a diff with just the real changes? Also, if you have a unit test that excercises your addition, so we can be sure Created an attachment (id=13776)
updated patch with a fixed diff version 1) As request I reran cvs diff without having done a file format (which screwed 2) implementation of expungeDelete was made better to handle/delete the
Jeff Turner made changes - 03/Sep/05 03:28 PM
This seems generally useful. I imagine, though, that the patch is way out of date. I wonder if the new ability to merge some segments might have an option to do this kind of thing.
Any thoughts on resurrecting this? I think we should resurrect this: I agree it's useful. I'll take it & tentatively mark it 2.4 (hopefully I can make time by then!).
The original patch would simply merge one segment "in place". I think we can improve this a bit by merging any adjacent series of segments that have deletions? This would still preserve docID ordering, but would also accomplish some merging as a side effect (I think a good thing).
Michael McCandless made changes - 14/Jan/08 03:36 PM
Michael McCandless made changes - 14/Jan/08 03:37 PM
Attached patch. All tests pass. I plan to commit in a day or two.
This adds two methods to IndexWriter: expungeDeletes() – defaults to doWait=true If doWait is false, and you have a MergeScheduler that runs merges in I extended MergePolicy so it decides what "expunge deletes" really
Michael McCandless made changes - 09/Feb/08 03:20 PM
I just committed this. Thanks John! And sorry for the looooong
delay. I also added an "these APIs are experimental" warning on top of
Michael McCandless made changes - 11/Feb/08 08:35 PM
Michael McCandless made changes - 11/Oct/08 12:49 PM
|
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Patched IndexWriter.java, contains a new method: expungeDeleted()
I see now where to attach the patch
See attached patch.