Ability to optimize ES with cli


Well-known member
With the cmd.php tool it's possible te rebuild the search index (thanks for that!).

Rebuilt the index, triggered by the admin ES page which stated optimization was needed.
But after reindexing was done, the GUI still reports that optimization is needed.

How can I fix that (with the cli)? Maybe adding an option to optimize the index with the cmd.php tool?