Przeglądaj źródła

🔧 (search): 首次灌索引按 paragraph、chapter 两遍跑,关闭摘要

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
visuddhinanda 1 dzień temu
rodzic
commit
673fe96bb0

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

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