Skip to content

Commit

Permalink
Merge pull request #1948 from nurikabe/patch-1
Browse files Browse the repository at this point in the history
optimize() deprecated and replaced with forcemerge()
  • Loading branch information
XWB authored Jun 6, 2024
2 parents 3265e4b + 05f3fa0 commit e5c76f3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion doc/cookbook/populate-events.md
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ class PopulateListener
{
$index = $this->indexManager->getIndex($event->getIndex());
$settings = $index->getSettings();
$index->optimize(['max_num_segments' => 5]);
$index->forcemerge(['max_num_segments' => 5]);
$settings->setRefreshInterval('1s');
}
}
Expand Down

0 comments on commit e5c76f3

Please sign in to comment.