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