๐Ÿฅž BE
home

Elastic Stack

Search
Title
Date
Category
Tag
Detail
2023/06/22
Data Engineering
Basic
2023/06/22
Data Engineering
Basic
2023/06/24
Data Engineering
Apache Spark
2023/06/25
Data Engineering
Apache Spark
2023/08/06
Data Engineering
Apache Kafka
Boaz Base Session
2023/08/06
Data Engineering
Apache Kafka
Boaz Base Session
2023/08/17
Data Engineering
Apache Spark
Boaz Base Session
2023/09/23
Data Engineering
Apache Spark
2023/09/27
Data Engineering
Apache Spark
Boaz Base Session
2023/09/27
Data Engineering
Apache Spark
Boaz Base Session
2023/10/11
Data Engineering
Apache Kafka
2023/10/12
Data Engineering
Elastic Stack
2023/10/12
Data Engineering
Elastic Stack
2023/10/13
Data Engineering
Elastic Stack
2023/10/23
Data Engineering
Apache Airflow
Boaz Base Session
2023/10/23
Data Engineering
Apache Kafka
2023/11/29
Data Engineering
Basic
Boaz Base Session
2023/12/06
Data Engineering
Apache Airflow
Boaz Base Session
2023/12/19
Data Engineering
Apache Kafka
2024/02/27
Data Engineering
Elastic Stack
2024/03/08
Data Engineering
Elastic Stack
Boaz Base Session
2024/03/08
Data Engineering
Apache Airflow
2024/03/08
Data Engineering
Apache Airflow
2024/03/10
Data Engineering
Apache Airflow

Reference

์—˜๋ผ์Šคํ‹ฑ์„œ์น˜๋ฅผ ์ด์šฉํ•œ ์ƒํ’ˆ ๊ฒ€์ƒ‰ ์—”์ง„ ๊ฐœ๋ฐœ ์ผ์ง€
Elasticsearch๋Š” ๊ฐ•๋ ฅํ•œ ๊ฒ€์ƒ‰ ๊ธฐ๋Šฅ์„ ํ†ตํ•ด ์‚ฌ๋žŒ๋“ค์ด ์ฐจ๋ณ„ํ™”๋œ ๋ฐฉ์‹์œผ๋กœ ๋ฐ์ดํ„ฐ๋ฅผ ํƒ์ƒ‰ํ•˜๊ณ  ๋ถ„์„ํ•  ์ˆ˜ ์žˆ๋„๋ก ๋„์™€์ฃผ๋Š” ๊ฒ€์ƒ‰์— ํŠนํ™”๋œ ์—”์ง„์ž…๋‹ˆ๋‹ค. ์ฒ˜์Œ ๋„์ž…๋˜๋Š” Kubernetes ํ™˜๊ฒฝ์˜ ๊ฒ€์ƒ‰ ์—”์ง„ ์„œ๋น„์Šค๋กœ์„œ ์„ฑ๋Šฅ์„ ํ…Œ์ŠคํŠธํ•˜๊ณ  ๋” ๋‚˜์€ ์•„ํ‚คํ…์ฒ˜๊ฐ€ ์žˆ๋Š”์ง€ ๋งŽ์€ ์‹œํ–‰์ฐฉ์˜ค๋ฅผ ๊ฒช์–ด์•ผ ํ–ˆ์Šต๋‹ˆ๋‹ค. ๊ทธ๋ž˜์„œ Elasticsearch๋ฅผ ๋„์ž…ํ•œ ๊ณผ์ •์„ ์ด์ •๋ฆฌํ•จ์œผ๋กœ์จ ์†Œ๊ฐœ๋“œ๋ฆด ์˜ˆ์ •์ž…๋‹ˆ๋‹ค. ์ด๋ฒˆ ์„ธ์…˜์—์„œ๋Š” Elasticsearch, Spring Boot, Kotlin์„ ์ด์šฉํ•œ ๊ฒ€์ƒ‰ ์—”์ง„ ๊ตฌ์ถ• ๊ณผ์ •๋“ค์„ ์•Œ์•„๋ณด๊ณ ์ž ํ•ฉ๋‹ˆ๋‹ค.
โ€ข
Spring ์—ฐ๋™
โ€ข
API
05. ๋งคํ•‘ API
1. ๋งคํ•‘ ์ธ๋ฑ์Šค ์ƒ์„ฑ 2. ๋งคํ•‘ ํ™•์ธ ์ด๋ฏธ ๋งŒ๋“ค์–ด์ง„ ๋งคํ•‘์„ ํ™•์ธํ•˜๋ ค๋ฉด ์—˜๋ผ์Šคํ‹ฑ์„œ์น˜์—์„œ ์ œ๊ณตํ•˜๋Š” _mapping API๋ฅผ ์‚ฌ์šฉํ•  ์ˆ˜ ์žˆ์Šต๋‹ˆ๋‹ค. 3. ๋งคํ•‘ ํŒŒ๋ผ๋ฏธํ„ฐ ์˜ต์…˜ ์„ค๋ช… analyzer ํ•ด๋‹น ํ•„๋“œ์˜ ๋ฐ์ดํ„ฐ๋ฅผ ํ˜•ํƒœ์†Œ ๋ถ„์„ํ•˜๊ฒ ๋‹ค๋Š” ์˜๋ฏธ์˜ ํŒŒ๋ผ๋ฏธํ„ฐ๋‹ค. text ๋ฐ์ดํ„ฐ ํƒ€์ž…์˜ ํ•„๋“œ๋Š” analyzer ๋งคํ•‘ ํŒŒ๋ผ๋ฏธํ„ฐ๋ฅผ ๊ธฐ๋ณธ์ ์œผ๋กœ ์‚ฌ์šฉํ•ด์•ผ ํ•œ๋‹ค. (default : Standard Analyzer) normalizer term query ๋ถ„์„๊ธฐ๋ฅผ ์‚ฌ์šฉํ•˜๊ธฐ ์œ„ํ•ด ์‚ฌ์šฉ๋œ๋‹ค. asciifolding๊ณผ ๊ฐ™์€ ํ•„ํ„ฐ๋ฅผ ์‚ฌ์šฉํ•˜๋ฉด cafe, Cafe, Cafe' ๋“ฑ ๊ฐ™์€ ๋ฐ์ดํ„ฐ๋กœ ์ธ์‹๋˜๊ฒŒ ํ•  ์ˆ˜ ์žˆ๋‹ค. boost ํ•„๋“œ์— ๊ฐ€์ค‘์น˜(Weight)๋ฅผ ๋ถ€์—ฌํ•œ๋‹ค. ๊ฐ€์ค‘์น˜์— ๋”ฐ๋ผ ์œ ์‚ฌ๋„ ์ ์ˆ˜(_score)๊ฐ€ ๋‹ฌ๋ผ์ง€๊ธฐ ๋•Œ๋ฌธ์— boost ์„ค์ •..