Elasticsearch API 인덱스 생성

Jmnote (토론 | 기여)님의 2019년 12월 12일 (목) 16:04 판 (→‎같이 보기)

1 개요

Elasticsearch API - Create index
Elasticsearch API 인덱스 생성
testuser@localhost:~$ curl -u elastic:elastic -X PUT localhost:9200/twitter?pretty
{
  "acknowledged" : true,
  "shards_acknowledged" : true,
  "index" : "twitter"
}
testuser@localhost:~$ curl -u elastic:elastic -X GET localhost:9200/twitter?pretty
{
  "twitter" : {
    "aliases" : { },
    "mappings" : { },
    "settings" : {
      "index" : {
        "creation_date" : "1571967959548",
        "number_of_shards" : "1",
        "number_of_replicas" : "1",
        "uuid" : "kKLHtQezSKCjdTvLl3HluQ",
        "version" : {
          "created" : "7010199"
        },
        "provided_name" : "twitter"
      }
    }
  }
}

2 같이 보기

3 참고

문서 댓글 ({{ doc_comments.length }})
{{ comment.name }} {{ comment.created | snstime }}