1. Limit Token Count Token Filter(限制词元数量过滤器)

原文链接 :https://www.elastic.co/guide/en/elasticsearch/reference/5.4/analysis-limit-token-count-tokenfilter.html

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

贡献者 : 李亚运ApacheCNApache中文网

1.1. 简述

限制每个文档和字段索引的token数。

1.2. 参数

设置 描述
max_token_count 每个文档和字段应该索引的token的最大数量。 默认值为1
consume_all_tokens 如果设置为true,尽管已经超过max_token_count设定的值,也会最大限度的处理所有的token。默认为false。

1.3. 示例

如下所示:

index :
    analysis :
        analyzer :
            myAnalyzer :
                type : custom
                tokenizer : standard
                filter : [lowercase, five_token_limit]
        filter :
            five_token_limit :
                type : limit
                max_token_count : 5
Copyright © Kilvn 2021. all right reserved,powered by Gitbook最后更新时间: 2021-06-08 20:22:42

results matching ""

    No results matching ""