1
0
mirror of https://gitee.com/koogua/course-tencent-cloud.git synced 2025-06-30 14:14:55 +08:00
course-tencent-cloud/app/Services/Search/ArticleSearcher.php
2021-04-08 19:58:30 +08:00

26 lines
385 B
PHP

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