Account Options

  1. Sign in
The old Google Groups will be going away soon, but your browser is incompatible with the new version.
Google Groups Home
« Groups Home
Does mergeFactor not work?
There are currently too many topics in this group that display first. To make this topic appear first, remove this option from another topic.
There was an error processing your request. Please try again.
flag
  6 messages - Collapse all  -  Translate all to Translated (View all originals)
The group you are posting to is a Usenet group. Messages posted to this group will make your email address visible to anyone on the Internet.
Your reply message has not been sent.
Your post was successful
 
From:
To:
Cc:
Followup To:
Add Cc | Add Followup-to | Edit Subject
Subject:
Validation:
For verification purposes please type the characters you see in the picture below or the numbers you hear by clicking the accessibility icon. Listen and type the numbers you hear
 
Bob  
View profile  
 More options Sep 28 2011, 10:47 pm
From: Bob <hellstone2...@gmail.com>
Date: Wed, 28 Sep 2011 19:47:21 -0700 (PDT)
Local: Wed, Sep 28 2011 10:47 pm
Subject: Does mergeFactor not work?
There are two threads in my program.
one  creates dataEvent and consumes it by calling
zoieSystem.consume(envet), the data is from a file, the logic is like
this :

while( (text= filereader.readLine() )!=null ){
     .... create  data event  with  text....
   zoieSystem.consume(dataEvent);
   zoieSystem.syncWithVersion(10000,  version);
   version++;

}

the other thread searches the index by calling
zoieSystem.getIndexReaders();

The problem is that there are  many small segments in the index
directory ,it seems like that the segments are never merged.
The param mergeFactor is 6 in ZoieMergePolicy .


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
John Wang  
View profile  
 More options Sep 29 2011, 1:41 am
From: John Wang <john.w...@gmail.com>
Date: Wed, 28 Sep 2011 22:41:18 -0700
Local: Thurs, Sep 29 2011 1:41 am
Subject: Re: [zoie] Does mergeFactor not work?

Hi Bob:

    For realtime indexing scenarios, we want to avoid large segment merges.
So instead of optimizing for 1 large segment, zoie optimizes for N balanced
segments and thus spread the merge cost over time.

     The configuration parameters are number of Large segments and number of
Smal segments. You should only be tuning those parameters. I would suggest
you leave mergeFactor alone. For us, our production system has been running
rather smoothly without changing the default parameters.

 -John


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Bob  
View profile  
 More options Sep 29 2011, 3:27 am
From: Bob <hellstone2...@gmail.com>
Date: Thu, 29 Sep 2011 00:27:37 -0700 (PDT)
Local: Thurs, Sep 29 2011 3:27 am
Subject: Re: Does mergeFactor not work?
I think the reason is that  the  writer.addIndexesNoOptimize()
function is changed in lucene3.3;
In Lucene 3.0 , addIndexesNoOptimize()  maybe  cause merge. In
Lucene3.3, it does not.
Maybe  this is a bug .

On Sep 29, 1:41 pm, John Wang <john.w...@gmail.com> wrote:


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Bob  
View profile   Translate to Translated (View Original)
 More options Sep 29 2011, 3:32 am
From: Bob <hellstone2...@gmail.com>
Date: Thu, 29 Sep 2011 00:32:38 -0700 (PDT)
Local: Thurs, Sep 29 2011 3:32 am
Subject: Re: Does mergeFactor not work?
我把程序改成使用  zoie3.0 based on Lucene.3.0 , 现在正常了,只有10几个segment了。

建议新版本的zoie 使用 indexWriter.addIndexes(IndexReader... readers)  这个方法。

On Sep 29, 3:27 pm, Bob <hellstone2...@gmail.com> wrote:


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
John Wang  
View profile  
 More options Sep 29 2011, 9:08 am
From: John Wang <john.w...@gmail.com>
Date: Thu, 29 Sep 2011 06:08:12 -0700
Local: Thurs, Sep 29 2011 9:08 am
Subject: Re: [zoie] Re: Does mergeFactor not work?

Thanks Bob!

The latest Zoie 3.0.0 release is based on Lucene 3.0.

Are you seeing this with latest on master?

I have created: http://linkedin.jira.com/browse/ZOIE-88 to track this.
Thanks for pointing this out!

-John


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
John Wang  
View profile  
 More options Sep 29 2011, 9:59 am
From: John Wang <john.w...@gmail.com>
Date: Thu, 29 Sep 2011 06:59:47 -0700
Local: Thurs, Sep 29 2011 9:59 am
Subject: Re: [zoie] Re: Does mergeFactor not work?

Hi Bob:

    I am the fix with this commit:
https://github.com/javasoze/zoie/commit/8d591d08682cbc7313046889a91a0...

    And also published a snapshot jar (3.1.0-SNAPSHOT) to maven. Please give
it a try and let me know if it is better.

    Thanks again for pointing this out!

-John


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
End of messages
« Back to Discussions « Newer topic     Older topic »