Просмотр исходного кода

add index-tipitaka index-term'

visuddhinanda 2 дней назад
Родитель
Сommit
fb54d1d846
1 измененных файлов с 2 добавлено и 1 удалено
  1. 2 1
      api-v13/app/Console/Commands/IndexOpenSearch.php

+ 2 - 1
api-v13/app/Console/Commands/IndexOpenSearch.php

@@ -31,7 +31,8 @@ class IndexOpenSearch extends Command
         //
         $service = app(OpenSearchService::class);
         if ($service->count() === 0) {
-            $this->call('opensearch:index-pali');
+            $this->call('opensearch:index-tipitaka', ['book' => 0, '--granularity' => 'all']);
+            $this->call('opensearch:index-term');
         } else {
             if (App::environment('local')) {
                 $this->info('data exist');