一个过滤器,使用 Snowball-generated 的分词器来分词。 language
参数使用以下可用值控制分词器:Armenian
, Basque
, Catalan
, Danish
, Dutch
, English
, Finnish
, French
, German
, German2
, Hungarian
, Italian
, Kp
, Lithuanian
, Lovins
, Norwegian
, Porter
, Portuguese
, Romanian
, Russian
, Spanish
, Swedish
, Turkish
.
例如:
PUT /my_index
{
"settings": {
"analysis" : {
"analyzer" : {
"my_analyzer" : {
"tokenizer" : "standard",
"filter" : ["standard", "lowercase", "my_snow"]
}
},
"filter" : {
"my_snow" : {
"type" : "snowball",
"language" : "Lovins"
}
}
}
}
}