Parcourir la source

add PaliSearch::book_list

visuddhinanda il y a 2 ans
Parent
commit
704fc38052
1 fichiers modifiés avec 7 ajouts et 1 suppressions
  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.
      * The name and signature of the console command.
-     *
+     * php artisan test:search.pali
      * @var string
      * @var string
      */
      */
     protected $signature = 'test:search.pali {word?}';
     protected $signature = 'test:search.pali {word?}';
@@ -51,6 +51,12 @@ class TestSearchPali extends Command
         }else{
         }else{
             $this->error("word={$word} search fail");
             $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");
         $this->info("searching word={$word} limit=10,offset=10");
         $result = PaliSearch::search($words,[],'case',10,10);
         $result = PaliSearch::search($words,[],'case',10,10);
         if($result){
         if($result){