Elasticsearch 聚合保留空格

Elasticsearch aggregation keep whitespaces

我有最新版本的 elasticsearch (6.5.x)。
我想为聚合中的字段保留 完整字符串

例如:"New York" 在聚合中给出 "new" 和 "york"。
我想保留 "New York".

在旧版本中,我们必须使用索引:"not_analyzed" https://www.elastic.co/guide/en/elasticsearch/guide/current/aggregations-and-analysis.html

我在 6.5 的文档中找不到等效的东西。 谢谢!

将字段映射为 keyword 数据类型。