"Yonik Seeley" <[EMAIL PROTECTED]> wrote:
> On 5/3/07, Michael McCandless <[EMAIL PROTECTED]> wrote:
> > I like your idea to keep "delete count per segment" in the segments
> > file.  This information is certainly useful to the merge policy
> > because it should proportionally reducde a segments size according to
> > what %tg of its docs are deleted, and, it should favor merging
> > segments with high # deletes to free up the storage.
> 
> Looking at numDocs instead of maxDoc would be a simple way.

But we [currently] need a SegmentReader to get that information right?  I think
Ning was proposing that we store this (numDocs) in the segments_N file to save
having to open SegmentReader for each segment we may want to merge.

Mike

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to