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
390
経営者を巻き込む自動テストの広め方 [DevLove甲子園-技]
tadyjp
6
1.1k
Other Decks in Programming
See All in Programming
Monixと常駐プログラムの勘どころ / Scalaわいわい勉強会 #4
stoneream
0
270
テストコード文化を0から作り、変化し続けた組織
kazatohiei
2
1.5k
range over funcの使い道と非同期N+1リゾルバーの夢 / about a range over func
mackee
0
110
php-conference-japan-2024
tasuku43
0
260
Fibonacci Function Gallery - Part 1
philipschwarz
PRO
0
210
複雑な仕様に立ち向かうアーキテクチャ
myohei
0
170
採用事例の少ないSvelteを選んだ理由と それを正解にするためにやっていること
oekazuma
2
1k
Zoneless Testing
rainerhahnekamp
0
120
Асинхронность неизбежна: как мы проектировали сервис уведомлений
lamodatech
0
740
The Efficiency Paradox and How to Save Yourself and the World
hollycummins
1
440
クリエイティブコーディングとRuby学習 / Creative Coding and Learning Ruby
chobishiba
0
3.9k
From Translations to Multi Dimension Entities
alexanderschranz
2
130
Featured
See All Featured
Why Our Code Smells
bkeepers
PRO
335
57k
Building Flexible Design Systems
yeseniaperezcruz
327
38k
Let's Do A Bunch of Simple Stuff to Make Websites Faster
chriscoyier
507
140k
個人開発の失敗を避けるイケてる考え方 / tips for indie hackers
panda_program
95
17k
Become a Pro
speakerdeck
PRO
26
5k
Optimising Largest Contentful Paint
csswizardry
33
3k
Bash Introduction
62gerente
608
210k
CoffeeScript is Beautiful & I Never Want to Write Plain JavaScript Again
sstephenson
159
15k
The Web Performance Landscape in 2024 [PerfNow 2024]
tammyeverts
2
290
Dealing with People You Can't Stand - Big Design 2015
cassininazir
365
25k
Practical Tips for Bootstrapping Information Extraction Pipelines
honnibal
PRO
10
810
Fontdeck: Realign not Redesign
paulrobertlloyd
82
5.3k
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