创建一个JSON文档,elasticsearch

时间:2017-11-16 22:18:43

标签: json elasticsearch indexing document

我将引用“www.elastic.co”关于创建JSON文档的部分文档:

  

将一个简单的客户文档索引到客户索引“外部”类型,ID为1,如下所示:   我们的JSON文档:{“name”:“John Doe”}

.svg-map-pg-logo {
  animation-name: star;
  animation-duration: 0.5s;
  animation-iteration-count: infinite;
  transform-origin: center center;
  transform-box: fill-box;
}

@keyframes star {
    0%   {
      transform: scale(1, 1);
    }
    100% {
      transform: scale(1.2, 1.2);
    }
}

我从网址

中删除了引号

curl -XPUT 'localhost:9200/customer/external/1?pretty' -d '{"name": "John Doe"}'

结果是错误

  

curl -XPUT localhost:9200/customer/external/1?pretty -d '{"name": "John Doe"}'}

1 个答案:

答案 0 :(得分:0)

卷曲查询中缺少内容类型。

11-17 08:38:10.263 15501-15501/? I/System.out: can be read and write
11-17 08:38:10.263 15501-15501/? I/System.out: create file
11-17 08:38:10.264 15501-15501/? I/System.out: /storage/sdcard/demos/file/tmp/test