visuddhinanda 2 лет назад
Родитель
Сommit
704fc38052
1 измененных файлов с 7 добавлено и 1 удалено
  1. 7 1
      app/Console/Commands/TestSearchPali.php

+ 7 - 1
app/Console/Commands/TestSearchPali.php

@@ -9,7 +9,7 @@ class TestSearchPali extends Command
 {
     /**
      * The name and signature of the console command.
-     *
+     * php artisan test:search.pali
      * @var string
      */
     protected $signature = 'test:search.pali {word?}';
@@ -51,6 +51,12 @@ class TestSearchPali extends Command
         }else{
             $this->error("word={$word} search fail");
         }
+
+        $rpc_result = PaliSearch::book_list($words,
+                                            [],
+                                            'case');
+        $this->info('book list count='.count($rpc_result['rows']));
+
         $this->info("searching word={$word} limit=10,offset=10");
         $result = PaliSearch::search($words,[],'case',10,10);
         if($result){