原英文版地址: https://www.elastic.co/guide/en/elasticsearch/reference/7.7/analysis-snowball-tokenfilter.html, 原文档版权归 www.elastic.co 所有
本地英文版地址: ../en/analysis-snowball-tokenfilter.html
本地英文版地址: ../en/analysis-snowball-tokenfilter.html
重要: 此版本不会发布额外的bug修复或文档更新。最新信息请参考 当前版本文档。
Snowball token filteredit
A filter that stems words using a Snowball-generated stemmer. The
language
parameter controls the stemmer with the following available
values: Armenian
, Basque
, Catalan
, Danish
, Dutch
, English
,
Finnish
, French
, German
, German2
, Hungarian
, Italian
, Kp
,
Lithuanian
, Lovins
, Norwegian
, Porter
, Portuguese
, Romanian
,
Russian
, Spanish
, Swedish
, Turkish
.
For example:
PUT /my_index { "settings": { "analysis" : { "analyzer" : { "my_analyzer" : { "tokenizer" : "standard", "filter" : ["lowercase", "my_snow"] } }, "filter" : { "my_snow" : { "type" : "snowball", "language" : "Lovins" } } } } }