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
コンテナをたくさん詰め込んだシステムとランタイムの変化
makihiro
1
130
情報漏洩させないための設計
kubotak
2
260
rails statsで大解剖 🔍 “B/43流” のRailsの育て方を歴史とともに振り返ります
shoheimitani
2
940
競技プログラミングへのお誘い@阪大BOOSTセミナー
kotamanegi
0
360
useSyncExternalStoreを使いまくる
ssssota
6
1.1k
テストケースの名前はどうつけるべきか?
orgachem
PRO
0
140
暇に任せてProxmoxコンソール 作ってみました
karugamo
2
720
Cloudflare MCP ServerでClaude Desktop からWeb APIを構築
kutakutat
1
550
SymfonyCon Vienna 2025: Twig, still relevant in 2025?
fabpot
3
1.2k
StarlingMonkeyを触ってみた話 - 2024冬
syumai
3
270
命名をリントする
chiroruxx
1
410
Recoilを剥がしている話
kirik
5
6.8k
Featured
See All Featured
XXLCSS - How to scale CSS and keep your sanity
sugarenia
247
1.3M
How to Create Impact in a Changing Tech Landscape [PerfNow 2023]
tammyeverts
48
2.2k
The Success of Rails: Ensuring Growth for the Next 100 Years
eileencodes
44
6.9k
Become a Pro
speakerdeck
PRO
26
5k
RailsConf & Balkan Ruby 2019: The Past, Present, and Future of Rails at GitHub
eileencodes
132
33k
Bootstrapping a Software Product
garrettdimon
PRO
305
110k
BBQ
matthewcrist
85
9.4k
How To Stay Up To Date on Web Technology
chriscoyier
789
250k
We Have a Design System, Now What?
morganepeng
51
7.3k
The Language of Interfaces
destraynor
154
24k
GraphQLの誤解/rethinking-graphql
sonatard
67
10k
Site-Speed That Sticks
csswizardry
2
190
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