From 271be3873906a2679403c84b70c669ac62c5099c Mon Sep 17 00:00:00 2001 From: ghost Date: Mon, 12 Feb 2024 19:41:29 +0200 Subject: [PATCH] add optimize method --- src/Manticore.php | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/src/Manticore.php b/src/Manticore.php index 1b6e183..ddb35e5 100644 --- a/src/Manticore.php +++ b/src/Manticore.php @@ -136,6 +136,13 @@ class Manticore ); } + public function optimize(?bool $sync = false) + { + return $this->_index->optimize( + $sync + ); + } + private function _crc32(mixed $value): int { return crc32(