lucene-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Michael McCandless" <luc...@mikemccandless.com>
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" <yonik@apache.org> wrote:
> On 5/3/07, Michael McCandless <lucene@mikemccandless.com> 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: java-dev-unsubscribe@lucene.apache.org
For additional commands, e-mail: java-dev-help@lucene.apache.org


Mime
View raw message