简体   繁体   English

如何删除所有索引(包括.kibana和.marvel)上的映射?

[英]How do I remove a mapping on all indices including .kibana and .marvel?

I am new to Elasticsearch for .NET (NEST) and didn't specify the index when adding a mapping. 我是Elasticsearch for .NET(NEST)的新手,添加映射时未指定索引。 Now the mapping exists on my indices for Kibana & Marvel. 现在,该映射已存在于我的Kibana&Marvel索引中。

How do I undo what I've done? 如何撤消已完成的工作? I'm using Elasticsearch 2.* and can't delete the mapping. 我正在使用Elasticsearch 2. *,无法删除映射。 They say to just reindex, but I'm not sure how to do that for these indices. 他们说只是重新索引,但是我不确定如何为这些索引做索引。

  ".kibana": {
    "mappings": {
      "company": {
        "properties": {
          "iD": {
            "type": "double",
            "precision_step": 1
          }
        }
      }
    }
  },

Unfortunately, you can't. 不幸的是,你不能。

The only way to remove a mapping is to recreate the index without that mapping. 删除映射的唯一方法是在没有该映射的情况下重新创建索引。 The impact of that mapping (as goofy as it is) is low. 该映射的影响(尽管很愚蠢)很小。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM