Notice
Recent Posts
Recent Comments
Link
일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
1 | 2 | 3 | 4 | 5 | 6 | 7 |
8 | 9 | 10 | 11 | 12 | 13 | 14 |
15 | 16 | 17 | 18 | 19 | 20 | 21 |
22 | 23 | 24 | 25 | 26 | 27 | 28 |
29 | 30 |
Tags
- 디버깅
- 지원금신청방법
- 개발생산성
- intellij완전정복
- MYSQL
- 개발툴팁
- 미국 배당주
- java
- Ai
- 자바패턴
- GPT
- spring boot 시작
- AES256
- intelliJ plugin
- Python 기본편
- 주식용어
- Spring Batch 강의
- python 기초
- docker mysql
- scrapy
- docker
- Spring
- IntelliJ
- Vue 강의
- python
- JetBrains
- 민생회복지원금
- Vue 알아보기
- gradle
- Vue 배우기
Archives
나만의공간
ElasticSearch 개념정리 본문
ElasticSearch / Relation DB 을 이용한 개념 비교
doc1 "car" : { "color" : "red", "kind" : "sonata" } doc2 "car" : { "color" : "red", "kind" : "K5" } doc3 "car" : { "color" : "yellow", "kind" : "K5" } doc4 "car" : { "color" : "blue", "kind" : "K7" }
1. ElasticSearch 저장구조
text |
document |
red |
doc1, doc2 |
yellow |
doc3 |
K5 | doc2, doc3 |
K7 | doc4 |
2. ElasticSearch 와 Relation DB 저장구조 비교
2-1) ElasticSearch 구조
text |
document |
red |
doc1, doc2 |
yellow |
doc3 |
K5 |
doc2, doc3 |
2-2) Relation DB 구조
document |
context |
doc1 |
"car" : { "color" : "red", "kind" : "sonata" } |
doc2 |
"car" : { "color" : "red", "kind" : "K5" } |
3. ElasticSearch 자료구조
Elastic Search |
Relation DB |
INDEX |
DATABASE |
TYPE |
TABLE |
Document |
ROW |
Field | Column |
Mapping | Schema |
4. ElasticSearch Schema
Elastic Search |
Relation DB |
GET |
SELECT |
PUT |
UPDATE |
POST |
INSERT |
DELETE |
DELETE |
|
|
5. ElasticSearch 명령어
SELECT : curl -XGET localhost:9200/classes/class/1
SAVE : curl -XPOST localhost:9200/classes/class/1 -d '{xxx}'
UPDATE : curl -XPUT localhost:9200/classes/class/1 -d '{xxxx}'
DELETE : curl -XDELETE localhost:9200/classes/class/1
'IT > ELK(ElasticSearch, LogStash, Kibana)' 카테고리의 다른 글
ElasticSearch 설치 하기 (0) | 2018.07.03 |
---|
Comments