Upgrade to Pro
— share decks privately, control downloads, hide ads and more …
Speaker Deck
Features
Speaker Deck
PRO
Sign in
Sign up for free
Search
Search
Elasticsearch 구조 및 검색기능 기획 시 고려 사항
Search
Sponsored
·
Your Podcast. Everywhere. Effortlessly.
Share. Educate. Inspire. Entertain. You do you. We'll handle the rest.
→
정한빈
March 08, 2024
42
0
Share
Embed
Copy iframe code
Copy JS code
Copy link
Start on current slide
Elasticsearch 구조 및 검색기능 기획 시 고려 사항
정한빈
March 08, 2024
More Decks by 정한빈
See All by 정한빈
System Design
hanbin
0
58
Evolutionary Architecture
hanbin
0
26
Featured
See All Featured
Information Architects: The Missing Link in Design Systems
soysaucechin
1
1.1k
Jamie Indigo - Trashchat’s Guide to Black Boxes: Technical SEO Tactics for LLMs
techseoconnect
PRO
0
660
実際に使うSQLの書き方 徹底解説 / pgcon21j-tutorial
soudai
PRO
201
75k
Abbi's Birthday
coloredviolet
3
9.8k
Max Prin - Stacking Signals: How International SEO Comes Together (And Falls Apart)
techseoconnect
PRO
0
450
Fashionably flexible responsive web design (full day workshop)
malarkey
408
67k
Mozcon NYC 2025: Stop Losing SEO Traffic
samtorres
1
520
Why Our Code Smells
bkeepers
PRO
340
58k
The Limits of Empathy - UXLibs8
cassininazir
1
640
How to Align SEO within the Product Triangle To Get Buy-In & Support - #RIMC
aleyda
2
1.8k
Building Applications with DynamoDB
mza
96
7.2k
Exploring anti-patterns in Rails
aemeredith
3
490
Transcript
ೠ࠼/23.12.6 Elasticsearch
Contents • elasticsearchۆ • Full Scan VS Pre fi x
VS Full Text • Tokenizer / Normalizer • Ѩ࢝ ঌҊ્ܻ / Fuzziness • Ѧ۽ ަ ਸ ࣻ חо
Elasticsearchۆ
Full Scan VS Prefix VS Full Text
Full Scan
Prefix CREATE INDEX `IDX_content` ON document (content); or CREATE INDEX
`IDX_content` ON document (content(n)); content ஸۢਵ۽ ੋؙझ ࢤࢿ
Prefix
Full Text - ࢝ੋ
Full Text - ࢝ੋ • Tokenizer - ࢝ੋೡ ױয Ѿ
ߑߨ • ۳ - ௪ܻо ݃ա ޙࢲ৬ ೠо?
Full Text - ࢝ੋ • a, an, theܳ Ѩ࢝೧ঠೡө? •
‘’, ‘’, ‘झ’۽ Ѩ࢝ೞݶ ‘झ’о Ѩ࢝غযঠೡө? • “झо”ۄҊ Ѩ࢝ೞݶ “झо”݅ Ѩ࢝غযঠೡө? ইפݶ “झীѱ”ب Ѩ࢝غযঠೡө? • url যڌѱ Ѩ࢝ೞ? googleਸ ଢ଼ਸٸ “google.com", “https://google.com" ١ Ѩ࢝ؼ ࣻ ਸө?
Full Text - ࢝ੋ ޙࢲܳ Ѩ࢝ೡ ࣻ ח ױয(token)ਵ۽ աׇח
ஹನք Tokenizer
• ౠ షਸ ܲ షਵ۽ ߄Լח ஹನք • Ex) ࠂࣻܳ
ױࣻചदெષ, җѢഋਸ അഋਵ۽ ߄Լષ, ޙܳ ࣗޙ۽ ߄Լષ • The foxes loved the little prince => [the, fox, love, little, prince] Normalizer
None
۳ • elasticsearchীࢲח bm25ۄח ঌҊ્ܻਵ۽ ௪ܻی ޙࢲо ݃ա ҙ۲חܳ ࣻ
۽ ն • ੌ߈ਵ۽ ੜ ٜযݏח ҕध • ցޖ ൔೠ ష оܳ ծ • ష ޙࢲীࢲ ৈ۞ߣ әغݶ ࣻܳ ֫ੋ • ӡо ૣ ޙࢲо જ ੌ߈ਵ۽ ੜٜযݏח ௪ܻ৬ ޙࢲ ҙ۲ب ࣻ ҅ध
BM25 ঌҊ્ܻ https://www.elastic.co/kr/blog/practical-bm25-part-2-the-bm25-algorithm-and-its-variables • “झо જইೞח ֢ې” -> [“झ”, “જইೞ”,
“֢ې”]
Ѩ࢝ ঌҊ્ܻ / Fuzziness Why ?????
Ѩ࢝ ঌҊ્ܻ / Fuzziness - Tokenizer / Normalizer - (ઑࢎо
ੜ ܻغחо?) - Fuzziness (auto)
Ѩ࢝ ӝמ ѐߊद ӝࣿ ৻ਵ۽ Ҋ۰೧ঠೞח ࢎ೦
࠺ѐߊ ҵ ൔ ೞח য়೧
Ѩ࢝ ӝמ ӝദ != Ѩ࢝ػ ചݶ
Ѩ࢝ ߧਤ ઁݾ? ղਊ? ࢿ? ؆Ӗ? ӝఋ ݫఋؘఠ?
ஶబஎ ۳ ୭न ࢤࢿࣽ? Ѩ࢝ ب ࣽ? જইਃ ࣽ?
Ӓ৻ Ѩ࢝ ҃җ ۨ٘ য় ਬ য়ఋܳ ݃ա ࠊ Ѫੋо?
<-> ӝദ, ࢿמ زয, ਬযܳ ܻ೧ Ѫੋо <-> ҳഅ դب, ١۾ ࢿמ, Ѩ࢝ ࢿמ Ѩ࢝ ௪ܻח যוب ӡੋо <-> ҳഅ դب, Ѩ࢝ ࢿמ Ѩ࢝ ௪ܻח ױযੋо ޙੋо <-> ҳഅ դب, Ѩ࢝ ࢿמ