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 |
Tags
- Spring
- Vue 강의
- gradle
- python 기초
- 구글 애드센스 수익
- IntelliJ
- apache log4j
- python
- docker 명령어
- Vue 배우기
- AES256
- Vue
- 애드센스 수익
- 젠킨스
- docker mysql
- Spring Batch
- MYSQL
- 도커
- JDK1.3
- 미국 배당주
- intelliJ plugin
- 티스토리 광고 수익
- spring boot 시작
- spring Annotation
- scrapy
- 미국주식
- Vue 알아보기
- docker
- Python 기본편
- Spring Batch 강의
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