Skip to content

Commit

Permalink
修改 phpanalysis 配置项名
Browse files Browse the repository at this point in the history
  • Loading branch information
vanry committed Feb 23, 2020
1 parent f435f66 commit cf2edb2
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion config/tntsearch.php
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
//'user_dict' => resource_path('dicts/mydict.txt'),
],

'analysis' => [
'phpanalysis' => [
'driver' => Vanry\Scout\Tokenizers\PhpAnalysisTokenizer::class,
'to_lower' => true,
'unit_word' => true,
Expand Down
2 changes: 1 addition & 1 deletion src/Tokenizers/PhpAnalysisTokenizer.php
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ public function __construct()
{
$this->analysis = new Phpanalysis;

foreach ($this->getConfig('analysis') as $key => $value) {
foreach ($this->getConfig('phpanalysis') as $key => $value) {
$key = Str::camel($key);

if (property_exists($this->analysis, $key)) {
Expand Down

0 comments on commit cf2edb2

Please sign in to comment.