0

嗨,感谢您的回复。我使用:laravel-scout-mysql-driver来索引和搜索 mysql 数据库。根据一套:'strict'=>false代码:

   public function searchpages(Request $request){

    $query= $request->get('query');
    $adpgs=[];
    $pages= \App\Page::search("*".$query."*")->paginate(1);
    return view('content.pages_show')->with(['pages'=>$pages,'adpgs'=>$adpgs]);


}

正确提供分页链接,但是当点击链接时,错误:

SQLSTATE[42000]: Syntax error or access violation: 1064 syntax error, unexpected $end, expecting FTS_TERM or FTS_NUMB or '*' (SQL: select count(*) as aggregate from `pages` where MATCH(en_id,fa_id,title,subtitle,address,phones,mobiles,brf_work_hours,moreinfo) AGAINST(**qqq** IN BOOLEAN MODE))

显示。为什么以及我最常做什么???

4

0 回答 0