Warning: file_get_contents(/data/phpspider/zhask/data//catemap/1/cocoa/3.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
<img src="//i.stack.imgur.com/RUiNP.png" height="16" width="18" alt="" class="sponsor tag img">elasticsearch 更新ElasticSearch映射_<img Src="//i.stack.imgur.com/RUiNP.png" Height="16" Width="18" Alt="" Class="sponsor Tag Img">elasticsearch_Mapping - Fatal编程技术网 elasticsearch 更新ElasticSearch映射,elasticsearch,mapping,elasticsearch,Mapping" /> elasticsearch 更新ElasticSearch映射,elasticsearch,mapping,elasticsearch,Mapping" />

elasticsearch 更新ElasticSearch映射

elasticsearch 更新ElasticSearch映射,elasticsearch,mapping,elasticsearch,Mapping,我有一个超过30000.000文档的索引。 我需要为即将发布的新文档添加一个新字段。 但是我需要指定这个新字段的正确映射 此命令是否会导致对现有文档执行任何重新索引操作 PUT /my_index/_mappings/my_type { "my_type": { "properties": { "A": { "properties": { "new_field": { "

我有一个超过30000.000文档的索引。 我需要为即将发布的新文档添加一个新字段。 但是我需要指定这个新字段的正确映射

此命令是否会导致对现有文档执行任何重新索引操作

PUT /my_index/_mappings/my_type
{
   "my_type": {
      "properties": {
         "A": {
            "properties": {
               "new_field": {
                  "type": "string",
                  "analyzer": "analyzer_keyword"
               }
            }
         }
      }
   }
}

否,上述查询不会导致任何类型的
重新索引
。这只会在映射中添加新字段。如果
更新现有文档
创建新文档
,则会添加新字段。 有关更多详细信息,请参阅