lucene icon indicating copy to clipboard operation
lucene copied to clipboard

Switching to a fixed CFS threshold

Open shubhamsrkdev opened this issue 3 months ago • 2 comments

Problem

Lucene uses CFS ratio (which is by default 10%) to determine whether to use Compound Files.

Solution

In this PR we are doing the following:

  • Switching from a CFS ratio to a fixed threshold which is:

    • 64MB for byte-size-based merge policies
    • 65,536 docs for doc-based merge policies
  • Moved CFS configuration to CompoundFormat.java from Merge policies.

Fixes #14959

shubhamsrkdev avatar Oct 07 '25 14:10 shubhamsrkdev

This PR has not had activity in the past 2 weeks, labeling it as stale. If the PR is waiting for review, notify the [email protected] list. Thank you for your contribution!

github-actions[bot] avatar Oct 25 '25 00:10 github-actions[bot]

This PR has not had activity in the past 2 weeks, labeling it as stale. If the PR is waiting for review, notify the [email protected] list. Thank you for your contribution!

github-actions[bot] avatar Nov 26 '25 00:11 github-actions[bot]