-
카테고리
-
세부 분야
데이터 엔지니어링
-
해결 여부
미해결
json 파일 XPOST로 데이터를 입력하는데 왜 이상하게 들어가질까요..??
21.06.24 17:09 작성 조회수 291
0
강사님이 알려주신 명령어와 동일하게 입력했는데도, 데이터가 이상하게 들어갑니다... 그래서 XGET했을때도 이상한 값이 출력되구요...
md2_global@DESKTOP-Q1V5J1G:~/elk_stack$ curl -XPOST 'localhost:9200/_bulk?pretty' --data-binary @simple_basketball.json
{
"took" : 12,
"errors" : false,
"items" : [
{
"index" : {
"_index" : "basketball",
"_type" : "record",
"_id" : "1",
"_version" : 27,
"result" : "updated",
"_shards" : {
"total" : 2,
"successful" : 1,
"failed" : 0
},
"created" : false,
"status" : 200
}
},
{
"index" : {
"_index" : "basketball",
"_type" : "record",
"_id" : "2",
"_version" : 3,
"result" : "updated",
"_shards" : {
"total" : 2,
"successful" : 1,
"failed" : 0
},
"created" : false,
"status" : 200
}
}
]
}
md2_global@DESKTOP-Q1V5J1G:~/elk_stack$ curl -XGET localhost:9200/_search?pretty --data-binary @avg_points_aggs.json
{
"took" : 6,
"timed_out" : false,
"_shards" : {
"total" : 10,
"successful" : 10,
"failed" : 0
},
"hits" : {
"total" : 26,
"max_score" : 0.0,
"hits" : [ ]
},
"aggregations" : {
"avg_score" : {
"value" : 23.333333333333332
}
}
}
답변을 작성해보세요.
답변 0