You are viewing a plain text version of this content. The canonical link for it is here.
Posted to solr-user@lucene.apache.org by Zheng Lin Edwin Yeo <ed...@gmail.com> on 2017/12/01 07:59:44 UTC

Re: IndexMergeTool to adhere to TieredMergePolicyFactory settings

Hi,

Is it possible for the merging not to merge to one large segment?

Regards,
Edwin


On 28 November 2017 at 12:05, Zheng Lin Edwin Yeo <ed...@gmail.com>
wrote:

> Hi,
>
> I'm currently using Solr 6.5.1.
>
> I found that in the IndexMergeTool.java, we found that there is this line
> which set the maxNumSegments to 1.
>
> writer.forceMerge(1);
>
>
> For this, does it means that there will always be only 1 segment after the
> merging? From what I see, that seems to be the case.
>
> Is there any way which we can allow the merging to be in multiple segment,
> which each segment of a certain size? Like if we want each segment to be of
> 20GB, which is what is what is set in the TieredMergePolicyFactory?
>
> <mergePolicyFactory class="org.apache.solr.index.TieredMergePolicyFactory"
> > <int name="maxMergeAtOnce">10</int> <int name="segmentsPerTier">10</int>
> <double name="maxMergedSegmentMB">20480</double> </mergePolicyFactory>
>
>
> Regards,
> Edwin
>