On 6/21/2011 9:09 AM, Robert Muir wrote:
the problem is that before
https://issues.apache.org/jira/browse/SOLR-2567, Solr invoked the
TieredMergePolicy "setters" *before* it tried to apply these 'global'
mergeFactor etc params.

So, even if you set them explicitly inside the<mergePolicy>, they
would then get clobbered by these 'global' params / defaults / etc.

I fixed this order in SOLR-2567 so that the settings inside the
<mergePolicy>  *always* take precedence, e.g. they are applied last.

So, I think it might be difficult/impossible to configure this MP with
3.2 due to this.

That seems to be confirmed by my infostream. It's using LogByteSizeMergePolicy whether I have mergeFactor configured or not. The patch for SOLR-2567 applies with fuzz, but the result won't compile.

Unless I can find a way to patch 3.2 to allow using and configuring TMP, I guess I'll just have to live with a two-pass optimize. It only adds a few minutes to the process, and I currently have the disk space available, so it's not the end of the world. I am seeing enough improvements coming in 3.3 that I will have to lobby for upgrading to it a couple of weeks after it gets released. It won't come out in time for this cycle.

Thanks,
Shawn

Reply via email to