From d377eef95df85ad81f4e85420282b6d840959449 Mon Sep 17 00:00:00 2001 From: Gilles Felix Date: Mon, 18 Jul 2022 12:35:16 +0200 Subject: [PATCH 1/2] Add compatibility laravel 9 --- composer.json | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/composer.json b/composer.json index 68e8ad0..817dd5f 100644 --- a/composer.json +++ b/composer.json @@ -14,8 +14,8 @@ "require": { "php": "^7.4|^8.0", "elasticsearch/elasticsearch": "^7.13", - "laravel/framework": "^7.25|^8.0", - "laravel/scout": "^7.0|^8.0" + "laravel/framework": "^7.25|^8.0|^9.0", + "laravel/scout": "^7.0|^8.0|^9.0" }, "require-dev": { "friendsofphp/php-cs-fixer": "^2.19.0", From 486828b1dc0d4a47136587e320b28d568a9a4696 Mon Sep 17 00:00:00 2001 From: Gilles Felix Date: Tue, 19 Jul 2022 16:28:58 +0200 Subject: [PATCH 2/2] Implement methods from scout Engine in ElasticEngine --- src/ElasticEngine.php | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/src/ElasticEngine.php b/src/ElasticEngine.php index e721036..00c092d 100644 --- a/src/ElasticEngine.php +++ b/src/ElasticEngine.php @@ -330,4 +330,19 @@ protected function getModelIDFromHit($hit) { return str_replace($hit['_source']['type'].'_', '', $hit['_id']); } + + public function lazyMap(Builder $builder, $results, $model) + { + // TODO: Implement lazyMap() method. + } + + public function createIndex($name, array $options = []) + { + // TODO: Implement createIndex() method. + } + + public function deleteIndex($name) + { + // TODO: Implement deleteIndex() method. + } }