1
0
mirror of https://gitee.com/koogua/course-tencent-cloud.git synced 2025-06-28 05:11:39 +08:00
course-tencent-cloud/app/Services/Search/QuestionSearcher.php
2021-05-07 19:34:31 +08:00

26 lines
387 B
PHP

<?php
namespace App\Services\Search;
class QuestionSearcher extends Searcher
{
public function __construct()
{
$this->xs = $this->getXS();
}
public function getXS()
{
$filename = config_path('xs.question.ini');
return new \XS($filename);
}
public function getHighlightFields()
{
return ['title', 'summary'];
}
}