lucene-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Michael McCandless" <>
Subject Re: [jira] Created: (LUCENE-854) Create merge policy that doesn't periodically inadvertently optimize
Date Fri, 11 May 2007 14:02:44 GMT

"Yonik Seeley" <> wrote:
> On 5/3/07, Michael McCandless <> 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.


To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message