1. 인덱스 조회
curl -XGET localhost:9200/_cat/indices?v
2. name 이라는 인덱스 생성하고 조회해보기
curl -XPUT localhost:9200/name?pretty
curl -XGET localhost:9200/_cat/indices?v
3. name 이라는 인덱스를 제거하고 조회해보기
curl -XDELETE localhost:9200/name
curl -XGET localhost:9200/_cat/indices?v
4. hello 라는 인덱스 생성하고 조회해보기
curl -XPUT localhost:9200/hello?pretty
curl localhost:9200/_cat/indices?v
5. hello 인덱스의 도큐먼트 조회해보기
curl -XGET localhost:9200/hello/_search?pretty
6. hello 인덱스 삭제하고 조회해보기
curl -XDELETE localhost:9200/hello
curl localhost:9200/_cat/indices?v
'Database > ElasticSearch' 카테고리의 다른 글
[elasticsearch] 엘라스틱서치 예제 및 문법 공부 3 (0) | 2021.06.09 |
---|---|
[elasticsearch] 엘라스틱서치 예제 및 문법 공부 2 (0) | 2021.06.09 |
[elasticsearch] 엘라스틱서치 실행하기 (0) | 2021.06.08 |
[logstash] 로그스태시란 (0) | 2021.06.06 |
[elasticsearch] 엘라스틱서치란? (0) | 2021.06.06 |