change ZoneModel->setIndexWordFilter

This commit is contained in:
최준흠 2024-05-15 11:27:39 +09:00
parent 95f5246c7b
commit ee7c25a175

View File

@ -77,8 +77,8 @@ class ZoneModel extends Model
//Index 검색용
public function setIndexWordFilter(string $word)
{
$subquery = $this->db->table('cloudflarerecord')->select('zone_uid')->like('content', $word, 'both');
$this->like('domain', $word, 'both'); //befor , after , both
$subquery = $this->db->table('cloudflarerecord')->select('zone_uid')->where('content', $word, 'both');
$this->orWhereIn('uid', $subquery);
}
public function setIndexDateFilter($start, $end)