ソースを参照

add PaliSearch::book_list

visuddhinanda 2 年 前
コミット
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){