1. 관계형 DB와의 비교

GET이 SELECT,
PUT이 UPDATE,
POST가 INSERT,
DELETE가 DELETE
2. curl -XPUT http://localhost:9200/classes
class라는 인덱스를 추가
3. curl -XGET http://localhost:9200/classes?pretty
pretty하게 가져와달라

4. curl -XDELETE http://localhost:9200/classes
인덱스 지우기
--> XGET 하면 에러!
5. 도큐먼트 추가
curl -XPOST "http://localhost:9200/classes/class/1?pretty" -H'Content-Type: application/json' -d'
{"수업":"데사캡디", "교수님":"박성식교수님"}'

6. json 파일 추가

curl -XPOST "http://localhost:9200/classes/class/1?pretty" -H'Content-Type: application/json' -d @one.json
curl -XGET http://localhost:9200/classes/class/1/?pretty

'AX' 카테고리의 다른 글
| 딥러닝 기본 용어 (0) | 2022.07.16 |
|---|---|
| EC2 생성 과정 (0) | 2021.04.12 |
| YOLO - 이미지 증가(image augmentation) 파이썬 코드 (0) | 2021.04.12 |
| 트위터 크롤링 (0) | 2021.03.24 |
| Elastic Search 실행환경 설정 (ubuntu) (0) | 2021.03.22 |