Source of file FakeAppsearchClient.php
Size: 0,543 Bytes - Last Modified: 2021-12-23T10:34:25+00:00
/var/www/docs.ssmods.com/process/src/tests/Fake/FakeAppsearchClient.php
123456789101112131415161718192021222324252627 | <?php namespace SilverStripe\SearchService\Tests\Fake; use Elastic\AppSearch\Client\Client; use SilverStripe\SearchService\Exception\IndexingServiceException; class FakeAppsearchClient extends Client { public function indexDocuments($engineName, $docs) { foreach ($docs as $doc) { $this->documents[$doc['id']] = $doc; } } public function deleteDocuments($engineName, $ids) { foreach ($ids as $id) { unset($this->documents[$id]); } } //public function } |