Skip to content

Commit

Permalink
Cannot use ik_max_word, use ik_smart instead.
Browse files Browse the repository at this point in the history
Starting with Elasticsearch 6.7, the offset check has become more stringent, and the word segmentation feature no longer supports backtracking.

infinilabs/analysis-ik#662
  • Loading branch information
vistart committed May 16, 2019
1 parent 2ddb175 commit 3d94dcf
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion models/elasticsearch/Marc.php
Original file line number Diff line number Diff line change
Expand Up @@ -576,7 +576,7 @@ public static function mapping()
],
'value' => [
'type' => 'text',
'analyzer' => 'ik_max_word',
'analyzer' => 'ik_smart',
'search_analyzer' => 'ik_smart',
],
],
Expand Down

0 comments on commit 3d94dcf

Please sign in to comment.