mirror of
https://github.com/lkddi/nexusphp.git
synced 2026-04-24 03:57:22 +08:00
meilisearch improt think about enabled
This commit is contained in:
@@ -96,6 +96,9 @@ class MeiliSearchRepository extends BaseRepository
|
|||||||
|
|
||||||
public function import()
|
public function import()
|
||||||
{
|
{
|
||||||
|
if (!$this->isEnabled()) {
|
||||||
|
return 0;
|
||||||
|
}
|
||||||
$client = $this->getClient();
|
$client = $this->getClient();
|
||||||
$stats = $client->stats();
|
$stats = $client->stats();
|
||||||
if (isset($stats['indexes'][self::INDEX_NAME])) {
|
if (isset($stats['indexes'][self::INDEX_NAME])) {
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
<?php
|
<?php
|
||||||
defined('VERSION_NUMBER') || define('VERSION_NUMBER', '1.8.12');
|
defined('VERSION_NUMBER') || define('VERSION_NUMBER', '1.8.12');
|
||||||
defined('RELEASE_DATE') || define('RELEASE_DATE', '2024-06-22');
|
defined('RELEASE_DATE') || define('RELEASE_DATE', '2024-06-24');
|
||||||
defined('IN_TRACKER') || define('IN_TRACKER', false);
|
defined('IN_TRACKER') || define('IN_TRACKER', false);
|
||||||
defined('PROJECTNAME') || define("PROJECTNAME","NexusPHP");
|
defined('PROJECTNAME') || define("PROJECTNAME","NexusPHP");
|
||||||
defined('NEXUSPHPURL') || define("NEXUSPHPURL","https://nexusphp.org");
|
defined('NEXUSPHPURL') || define("NEXUSPHPURL","https://nexusphp.org");
|
||||||
|
|||||||
Reference in New Issue
Block a user