|
[
Permlink
| « Hide
]
Michael McCandless added a comment - 26/Feb/08 03:55 PM
Attached patch. All tests pass.
Great to see deleteByQuery being added to IndexWriter!
> Then, I also decoupled flushing deletes (mapping term or query --> When autoCommit is true, we have to flush deletes with added documents > SegmentMerger now exports the docID map it used when merging, Because of renumbering, we don't have to flush deletes at the start of
Good question Ning! As of Hmmm ... but, there is actually the reverse problem now with my patch: Also, I don't think we need updateByQuery? Eg in 3.0 when autoCommit
Exactly. EG, we could carry the deletes indefinitely and then flush
Right. I think you want to flush all deletes that apply to the > As of
> committing a merge, not with every flush. I see. Interesting. > Hmmm ... but, there is actually the reverse problem now with my patch: Yep. > Though, autoCommit=true is deprecated; once we I think flushing deletes when we flush a new segment is fine before 3.0. > Also, I don't think we need updateByQuery? Eg in 3.0 when autoCommit Agree. When autoCommit is disabled, we don't need any update method.
Yes, the latter. OK I attached a new rev of the patch, fixing the issue Ning spotted
(thanks!). Now if autoCommit=true we apply deletes with every flush. Other changes in this rev:
I plan to commit in a few days. |
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||