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
テスト駆動検索のススメ [第3回Elasticsearch勉強会]
Search
tadyjp
February 07, 2014
Programming
9
2.5k
テスト駆動検索のススメ [第3回Elasticsearch勉強会]
2014-02-07に開催された第3回ElasticSearch勉強会での発表スライド。
内容を一部修正しました。
株式会社じげん 多田雅斗@tady_jp
tadyjp
February 07, 2014
Tweet
Share
More Decks by tadyjp
See All by tadyjp
vue-onsenuiを教材に Vue2 migrationを 試してみる // migrate vue-onsenui to vue2
tadyjp
1
1.4k
「たった1行」を支える監視技術 at 2016/09/27 第一回スタートアップRails勉強会 / monitoring for "one line" service
tadyjp
2
400
経営者を巻き込む自動テストの広め方 [DevLove甲子園-技]
tadyjp
6
1.1k
Other Decks in Programming
See All in Programming
REALITY コマンド作成チュートリアル
nishiuriraku
0
120
AIコーディングの理想と現実
tomohisa
35
37k
Ruby's Line Breaks
yui_knk
4
2.8k
Thank you <💅>, What's the Next?
ahoxa
1
590
iOSアプリで測る!名古屋駅までの 方向と距離
ryunakayama
0
150
The Nature of Complexity in John Ousterhout’s Philosophy of Software Design
philipschwarz
PRO
0
160
Qiita Bash
mercury_dev0517
2
220
Contribute to Comunities | React Tokyo Meetup #4 LT
sasagar
0
590
GitHub Copilot for Azureを使い倒したい
ymd65536
1
310
Rubyの!メソッドをちゃんと理解する
alstrocrack
1
120
監視 やばい
syossan27
12
10k
状態と共に暮らす:ステートフルへの挑戦
ypresto
3
1.1k
Featured
See All Featured
The Web Performance Landscape in 2024 [PerfNow 2024]
tammyeverts
5
550
Exploring the Power of Turbo Streams & Action Cable | RailsConf2023
kevinliebholz
32
5.5k
How To Stay Up To Date on Web Technology
chriscoyier
790
250k
How to train your dragon (web standard)
notwaldorf
91
6k
The Cost Of JavaScript in 2023
addyosmani
49
7.8k
How to Ace a Technical Interview
jacobian
276
23k
The Straight Up "How To Draw Better" Workshop
denniskardys
233
140k
Fashionably flexible responsive web design (full day workshop)
malarkey
407
66k
Building Adaptive Systems
keathley
41
2.5k
Sharpening the Axe: The Primacy of Toolmaking
bcantrill
41
2.3k
Save Time (by Creating Custom Rails Generators)
garrettdimon
PRO
31
1.2k
Designing for humans not robots
tammielis
253
25k
Transcript
ୈճ&MBTUJD4FBSDIษڧձ !UBEZ@KQ &MBTUJD4FBSDIྺ 4PMSྺϲ݄ https://github.com/tadyjp/test_driven_search
p ݕࡧΤϯδϯ p ͳʹ͔ͱ4PMSͱൺֱ͞ΕΔ p ՄࢹԽ p ,JCBOB-PH4UBTI'MVFOUEք۾ p ࠷ۙ.BSWFMͱ͔ग़·ͨ͠Ͷ https://github.com/tadyjp/test_driven_search
à ࠓճͷςʔϚ
https://github.com/tadyjp/test_driven_search ͕ࠩॖ·͍ͬͯΔʂ
p ʮΫϥυʯ࣌ʹϚονͨ͠εέʔϥ ϏϦςΟ p 4IBSEͷࣗಈஔ p 3FQMJDBͷࣗಈ෮ؼ p ϊʔυΛՃ͢Εউखʹz͑Δz p 1MVHJOίϛϡχςΟ p
׆ൃ p 3&45GVMMͳJOEFYઃఆ p *OEFYNBQQJOHใ͕HJUͰΔͱخ͍͠ https://github.com/tadyjp/test_driven_search
p ެࣜαΠτ p େମ͜͜ͰΓΔ p ॻ੶ p ֓ཁΛѲ͢Δͷʹศར p ͔͠͠ӳޠ
p 4UBDL0WFS'MPX p ͋ͳ͕ͨϋϚΔͱ͜ɼΈΜͳϋϚ͍ͬͯΔ p .BJMJOH-JTU p ݕࡧੑ͕ɽɽɽ p ΫΤϦΛௐࠪ p $ISPNFr4FOTF͕ศར https://github.com/tadyjp/test_driven_search
[http://www.elasticsearch.org/case-studies/] 3.6 million query / day 460 million documents 14
million users Million updates 4 million users 8 million codes & events 110 million events 20 million prices 400 million documents 30 million users 10+ million conetnts https://github.com/tadyjp/test_driven_search
https://github.com/tadyjp/test_driven_search શจݕࡧ ෳࡶͳݕࡧ ෳࡶͳιʔτ ϋΠϥΠτ ཁ 'BDFUݕࡧ : ฐࣾͷ99%SolrͰͰ͖͍ͯ·͢
࠷ѱɺ"QQ%#ଆͰସՄೳ p શจݕࡧ p ෳΧϥϜʹ·͕ͨͬͨݕࡧ p ߴͳείΞϦϯά p #PPTURVFSZ p
ϑΝηοτݕࡧ p 'BDFUTRVFSZ p ෳࡶͳάϧʔϐϯάػೳ p &MBTUJD4FBSDIʹ·ͩ͜ͷػೳ͕ͳ͍ʂʁ p /FTUػೳɺ1BSFOU$IJMEػೳͰҰ෦ସՄೳ p αδΣετػೳ p ͔ͯ͠͠ʁ p ΦʔτίϯϓϦʔτ p ϋΠϥΠτػೳ p "QQଆͰॲཧ p Ңܦݕࡧ p .ZTRMQPJOUܕͱ͔1PTUHSFTͱ͔ https://github.com/tadyjp/test_driven_search
p ։ൃऀʮݕࡧͬͯͳʹ͔༷͋Γ·͔͢ʁʯ p ઃܭऀʮΜʙɺී௨ʹશจݕࡧͰ͖Ε͍͍Αʯ p ։ൃऀʢී௨ͬͯɻɻʣ p ։ൃऀʮ͡Ό͋ɺςΩτʔʹΓ·͢Ͷʯ p ઃܭऀʮΑΖ͘͠ʙʯ
ʢʀʉдʉʣ ϋΠɺࢮϑϥά https://github.com/tadyjp/test_driven_search
p ςελʔʮ͜Εɺඞཁͳจॻ͕)JU͠ͳ͍Αʯ p ։ൃऀɹʮ͢Μ·ͤΜʯʢʉʔʉ ʎ p ςελʔʮ͜Εɺअຐͳจॻ͕ࠞ͟Γ͗͢͡Όͳ͍ʁʯ p ։ൃऀɹʮ͢Μ·ͤΜʯʋ ʔ@ʔ
ϊ p Ӧۀɹɹʮ͝ΊʔΜɻΫϥΠΞϯτ͔ΒͷϑΥʔϚοτมΘͬͨʯ p ઃܭऀɹʮ͠Όʔͳ͍ͳɻ ɹɹɹɹɹɹɹೲظ৳ͼ͍͍͔ͯΒ։ൃऀΑΖ͘͠ʂʯ p ։ൃऀɹʮ͑ͬʯ ʄϩʄ p σβΠφʮݕࡧϑΥʔϜʹΦʔτίϯϓϦʔτՃ͍ͨ͠ʯ p ։ൃऀɹʮͦΕૣ͘ݴͬͯཉ͔ͬͨ͠ͳ͊ʯ ʄʄʣ p ϚʔέɹʮෆཁͳϖʔδʹϦϯΫΛுͬͯ΄͘͠ͳ͍Αʯ p ։ൃऀɹʮͦΕૣ͘ݴͬͯཉ͔ͬͨ͠ͳ͊ʯᵇ ʉʔʉ ᵃ p ઃܭऀɹʮಉ͡ݕࡧ݅ͳΒ˛˛Λ˙˙ΑΓ্Ґʹग़ͯ͠ཉ͍͠ʯ p ։ൃऀɹʮͦΜͳ༷ฉ͍ͯͳ͍ʂ͢Μ·ͤΜʯ ϊшɾɻ https://github.com/tadyjp/test_driven_search
https://github.com/tadyjp/test_driven_search ͦΕɺ 3TQFDͰղܾͰ͖Δ͔
p ϨετϥϯݕࡧαʔϏεͱԾఆ p σʔληοτͱͯ͠ ʮMJWFEPPSάϧϝ%BUB4FUʯΛར༻ p αʔόʹ4JOBUSB SVCZ Λ͏ p ཁ݅ ௨ৗͷશจݕࡧʗ'BDFUݕࡧ #PPTUʹΑΔ༏ઌ͚ ΦʔτίϯϓϦʔτʗ͔ͯ͠͠ʁػೳ
https://github.com/tadyjp/test_driven_search
ݕࡧ ߜΓࠐΈ 'BDFUT ݅ग़Δ σʔλ %#͔Β &MBTUJD4FBSDI .Z42- *%ͷΈ
ҾͬுΔ https://github.com/tadyjp/test_driven_search
Φʔτ ίϯϓϦʔτ 4VHHFTU https://github.com/tadyjp/test_driven_search
දهΛ ؒҧ͑Δͱ… ʮ͔ͯ͠͠ʁʯ 4VHHFTU https://github.com/tadyjp/test_driven_search
https://github.com/tadyjp/test_driven_search "DUJWF3FDPSE FMBTUJDTFBSDISVCZ (FNΛར༻
ϨϓϦΧઃఆ 5PLFOJ[FS 5PLFO'JMUFS "OBMZ[FS 5PLFOJ[FS 5PLFO'*MUFST https://github.com/tadyjp/test_driven_search
&MBTUJD4FBSDIͷJEΛ %#ͷJEͱಉ͡ʹ͢Δ ݕࡧจࣈྻ جຊతʹܗଶૉղ https://github.com/tadyjp/test_driven_search ݕࡧ͠ͳ͍'JFME ͦͷ··อ࣋
https://github.com/tadyjp/test_driven_search ݕࡧͷϝΠϯ෦ ͭͷpFMEΛݕࡧର JE͚ͩฦ͢
ςετ༻JOEFY໊ PWFSSJEF ςετσʔλ ೖ https://github.com/tadyjp/test_driven_search
͍͔ͭ͘ͷςετ (v^ʔ°) Ϡολω https://github.com/tadyjp/test_driven_search
https://github.com/tadyjp/test_driven_search IJUTIJUT<>pFMETJE<> ͳKTPOߏ
ʮژʯͰݕࡧ (Ň´Д㱬)͏͎ŋŋŋŇ https://github.com/tadyjp/test_driven_search
https://github.com/tadyjp/test_driven_search ͜ΕΛ ॅॴΛܗଶૉͰ ղͯ͠Δ ͜͏͢Δ (v^ʔ°) Ϡολω
OBNFʹʮ৽॓ʯ͕ ೖ͍ͬͯΔํ͕ ઌʹग़͖ͯͯཉ͍͠ (Ň´Д㱬)͏͎ŋŋŋŇ https://github.com/tadyjp/test_driven_search
ʮOBNFʯΛഒ ͩʂ https://github.com/tadyjp/test_driven_search (v^ʔ°) Ϡολω
͜Μͳײ͡Ͱ ฦͬͯ͘Δ https://github.com/tadyjp/test_driven_search ʮQSFG@JEʯͰ 'BDFUݕࡧ (v^ʔ°) Ϡολω
͜Μͳײ͡Ͱ ฦͬͯ͘Δ https://github.com/tadyjp/test_driven_search (Ň´Д㱬)͏͎ŋŋŋŇ
ͳΜ͔ɺOHSBNͰ ղ͞ΕͯΔʂ $ISPNFr4FOTF Ͱ݁ՌΛݟͯΈΔͱ https://github.com/tadyjp/test_driven_search
.VMUJpFMEͳσʔλ ϐϦΦυͰΞΫηε https://github.com/tadyjp/test_driven_search ͜ΕΛ NVMUJpFMEUZQFͰ ҟͳΔ"OBMZ[FSΛద༻ ͜͏͢Δ (v^ʔ°) Ϡολω
ΦʔτίϯϓϦʔτ ݕࡧͱҟͳΔϦΫΤετ ʮϥʔʯͱೖྗதʹ ʮϥʔϝϯʯ͕ग़͖ͯͯཉ͍͠ https://github.com/tadyjp/test_driven_search
ΦʔτίϯϓϦʔτ ݕࡧͱҟͳΔϦΫΤετ ʮϥʔʯͱೖྗதʹ ʮϥʔϝϯʯ͕ग़͖ͯͯཉ͍͠ https://github.com/tadyjp/test_driven_search (Ň´Д㱬)͏͎ŋŋŋŇ ͳΜ͔ώϯτ͕
DPNQMFUJPOUZQFΛՃ 'JFME໊มΘΔ https://github.com/tadyjp/test_driven_search (v^ʔ°) Ϡολω
https://github.com/tadyjp/test_driven_search
https://github.com/tadyjp/test_driven_search
https://github.com/tadyjp/test_driven_search ͜Μͳײ͡ͰSVCZʹΑΔ ςετۦಈݕࡧ Λ͓ಧ͚͠·ͨ͠ɻ
https://github.com/tadyjp/test_driven_search 8FBSFIJSJOH%FWFMPQFST