Snowball Token Filter(Snowball 词元过滤器)

一个过滤器,使用 Snowball-generated 的分词器来分词。 language 参数使用以下可用值控制分词器:ArmenianBasqueCatalanDanishDutchEnglishFinnishFrenchGermanGerman2HungarianItalianKpLithuanianLovinsNorwegianPorterPortugueseRomanianRussianSpanishSwedishTurkish.

例如:

PUT /my_index
{
    "settings": {
        "analysis" : {
            "analyzer" : {
                "my_analyzer" : {
                    "tokenizer" : "standard",
                    "filter" : ["standard", "lowercase", "my_snow"]
                }
            },
            "filter" : {
                "my_snow" : {
                    "type" : "snowball",
                    "language" : "Lovins"
                }
            }
        }
    }
}