[英]How to define mapping for all future field in elastic search
I am using template on elasticsearch 1.1.1 which is creating special mapping at index creation. 我在Elasticsearch 1.1.1上使用模板,该模板在创建索引时创建特殊映射。 My template is as following :
我的模板如下:
{
"template": "*",
"mappings": {
"foo": {
"properties": {
"where": {
"type": "nested",
"properties": {
"*": {
"index": "not_analyzed"
},
"geo_point": {
"type": "geo_point"
}
}
}
}
}
}
}
There will be future fields in the nested object "where". 嵌套对象“ where”中将有将来的字段。 I would like them to not be analyzed to avoid tokenization during a terms Faceting.
我希望不对它们进行分析,以免在术语“构面”中产生标记化。 Unfortunately I do not know the name of this future fields when my index is created.
不幸的是,创建索引后,我不知道此将来字段的名称。
Do you know any way of defining a mapping for any future field in a nested or inner object ? 您是否知道为嵌套或内部对象中的任何将来字段定义映射的任何方法?
Sincerely, 此致
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.