1. Stemmer Override Token Filter(Stemmer Override 词元过滤器)

原文链接 : https://www.elastic.co/guide/en/elasticsearch/reference/current/analysis-stemmer-override-tokenfilter.html

译文链接 : http://www.apache.wiki/pages/viewpage.action?pageId=10028530

贡献者 : fuckerApacheCNApache中文网

通过应用自定义映射来覆盖词干算法,然后保护这些术语不被词干修改。 必须放置在任何词干过滤器之前。

规则通过 => 分隔开

设置 描述
rules 映射规则列表.
rules_path 映射列表文件的路径 (config 目录的相对路径或者绝对路径) to a list of mappings.

示例:

index :
    analysis :
        analyzer :
            myAnalyzer :
                type : custom
                tokenizer : standard
                filter : [lowercase, custom_stems, porter_stem]
        filter:
            custom_stems:
                type: stemmer_override
                rules_path : analysis/custom_stems.txt
Copyright © Kilvn 2021. all right reserved,powered by Gitbook最后更新时间: 2021-06-08 20:22:42

results matching ""

    No results matching ""