原文地址: https://www.elastic.co/guide/en/elasticsearch/reference/7.7/analysis-snowball-tokenfilter.html, 原文档版权归 www.elastic.co 所有
IMPORTANT: No additional bug fixes or documentation updates
will be released for this version. For the latest information, see the
current release documentation.
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"
}
}
}
}
}