Upgrade to Pro
— share decks privately, control downloads, hide ads and more …
Speaker Deck
Sign up for free
Menu
Search
Features
All features
Private URLs
Password Protection
Custom URLS
Scheduled publishing
Remove Branding
Restrict embedding
Deck Collections
Notes
Features
All features
Private URLs
Password Protection
Custom URLS
Scheduled publishing
Remove Branding
Restrict embedding
Deck Collections
Notes
Explore
Featured decks
Featured speakers
Programming
Technology
Storyboards
Explore
Featured decks
Featured speakers
Programming
Technology
Storyboards
Pricing
Search
Sign in
Sign up for free
Elasticsearch 구조 및 검색기능 기획 시 고려 사항
Search
정한빈
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
29
Featured
See All Featured
Keith and Marios Guide to Fast Websites
keithpitt
413
23k
Improving Core Web Vitals using Speculation Rules API
sergeychernyshev
21
1.7k
Done Done
chrislema
187
17k
Put a Button on it: Removing Barriers to Going Fast.
kastner
60
4.6k
Darren the Foodie - Storyboard
khoart
PRO
4
4k
ピンチをチャンスに:未来をつくるプロダクトロードマップ #pmconf2020
aki_iinuma
128
56k
JAMstack: Web Apps at Ludicrous Speed - All Things Open 2022
reverentgeek
1
620
Code Review Best Practice
trishagee
74
20k
Measuring & Analyzing Core Web Vitals
bluesmoon
9
1k
JavaScript: Past, Present, and Future - NDC Porto 2020
reverentgeek
52
6.1k
Leo the Paperboy
mayatellez
10
2.4k
Docker and Python
trallard
47
4.2k
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)
Ѩ࢝ ӝמ ѐߊद ӝࣿ ৻ਵ۽ Ҋ۰೧ঠೞח ࢎ೦
࠺ѐߊ ҵ ൔ ೞח য়೧
Ѩ࢝ ӝמ ӝദ != Ѩ࢝ػ ചݶ
Ѩ࢝ ߧਤ ઁݾ? ղਊ? ࢿ? ؆Ӗ? ӝఋ ݫఋؘఠ?
ஶబஎ ۳ ୭न ࢤࢿࣽ? Ѩ࢝ ب ࣽ? જইਃ ࣽ?
Ӓ৻ Ѩ࢝ ҃җ ۨ٘ য় ਬ য়ఋܳ ݃ա ࠊ Ѫੋо?
<-> ӝദ, ࢿמ زয, ਬযܳ ܻ೧ Ѫੋо <-> ҳഅ դب, ١۾ ࢿמ, Ѩ࢝ ࢿמ Ѩ࢝ ௪ܻח যוب ӡੋо <-> ҳഅ դب, Ѩ࢝ ࢿמ Ѩ࢝ ௪ܻח ױযੋо ޙੋо <-> ҳഅ դب, Ѩ࢝ ࢿמ