三人行必有我师

Elasticsearch中索引和类型关系的疑问??

匿名 | 发布于2016年09月22日 | 阅读数:5887

初次接触elasticsearch,对索引/类型的关系不是很明确:
为什么索引下不同类型中创建的相同字段不能区分开 ?
请问这样为什么不能创建成功:
PUT /test
{
  "mappings": {
    "test1" : {
      "properties" : {
        "field" : {
          "type" :    "date"
        }
      }
    },
    "test2" : {
      "properties" : {
        "field" : {
          "type" :    "string"
        }
      }
    },
    "test3" : {
      "properties" : {
        "field" : {
          "type" :    "string"
        }
      }
    }
  }
}
已邀请:

Jea - 一只猿

赞同来自:

要回复问题请先登录注册