Browse Source

用下划线代替空格

visuddhinanda 2 years ago
parent
commit
bb1d7e70ff
1 changed files with 1 additions and 0 deletions
  1. 1 0
      app/Console/Commands/TestSearchPali.php

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

@@ -42,6 +42,7 @@ class TestSearchPali extends Command
         if(empty($word)){
             $word = 'citta';
         }
+        $words = str_replace('_',' ',$word);
         $words = explode(',',$word);
         $this->info("searching word={$word} limit=10,offset=0");
         $result = PaliSearch::search($words,[],'case',0,10);