好了,这些查询语法需要在Sense中复制和粘贴(https://www.elastic.co/blog/found-sense-a-cool-json-
aware-interface-to-elasticsearch)。使用Sense,您将能够顺序运行每个查询。
如果要使用curl,请将工作分为两个调用:
使用以下内容创建映射
curl -XPUT "http://localhost:9200/junktest" -d @mapping.json
顺便说一句,您的映射在这里缺少逗号
},"Created Date": {然后进行第二次调用,该调用使用批量API在单个查询中为您的Json对象建立索引,例如:
https://www.elastic.co/guide/zh-CN/elasticsearch/reference/current/docs-
bulk.html



