ArchiveOrangemail archive

java-user.lucene.apache.org


(List home) (Recent threads) (34 other Apache Lucene lists)

Subscription Options

  • RSS or Atom: Read-only subscription using a browser or aggregator. This is the recommended way if you don't need to send messages to the list. You can learn more about feed syndication and clients here.
  • Conventional: All messages are delivered to your mail address, and you can reply. To subscribe, send an email to the list's subscribe address with "subscribe" in the subject line, or visit the list's homepage here.
  • Moderate traffic list: up to 30 messages per day
  • This list contains about 42,073 messages, beginning Mar 2005
  • 14 messages added yesterday
Report the Spam
This button sends a spam report to the moderator. Please use it sparingly. For other removal requests, read this.
Are you sure? yes no

problem understanding the documentation for the TieredMergePolicy class

Ad
thomas 1339490647Tue, 12 Jun 2012 08:44:07 +0000 (UTC)
Hello,

I've read the documentation about the TiredMergePolicy class. But I just 
can't get behind what this sentence is trying to state:

[..] For normal merging, this policy first computes a "budget" of how 
many segments are allowed by be in the index. [...]
http://lucene.apache.org/core/old_versioned_d...) 
<http://lucene.apache.org/core/old_versioned_d...>

Would somebody be so kind to explain it to me?

Thanks, thanks a lot
Thomas
Jack Krupansky 1339516888Tue, 12 Jun 2012 16:01:28 +0000 (UTC)
You start by defining minimum segment size, number of segments per tier, and 
maximum segment size. From that, the "budget" or maximum number of segments 
allowed is calculated. Each move up a level (tier) increases the size of the 
segment allowed at that next higher tier until the largest segment size is 
reached.

Then the code compares the number of segments eligible for merge to that 
limit. If over that limit, the code then scores each merge and selects the 
merge with the best score.

-- Jack Krupansky

-----Original Message----- 
From: thomas
Sent: Tuesday, June 12, 2012 4:43 AM
To: 
Subject: problem understanding the documentation for the TieredMergePolicy 
class

Hello,

I've read the documentation about the TiredMergePolicy class. But I just
can't get behind what this sentence is trying to state:

[..] For normal merging, this policy first computes a "budget" of how
many segments are allowed by be in the index. [...]
http://lucene.apache.org/core/old_versioned_d...)
<http://lucene.apache.org/core/old_versioned_d...>

Would somebody be so kind to explain it to me?

Thanks, thanks a lot
Thomas
Home | About | Privacy