Upgrade to Pro — share decks privately, control downloads, hide ads and more …

テスト駆動検索のススメ [第3回Elasticsearch勉強会]

0325d2e64ff7ba85aaaeefca9cb882e5?s=47 tadyjp
February 07, 2014

テスト駆動検索のススメ [第3回Elasticsearch勉強会]

2014-02-07に開催された第3回ElasticSearch勉強会での発表スライド。
内容を一部修正しました。

株式会社じげん 多田雅斗@tady_jp

0325d2e64ff7ba85aaaeefca9cb882e5?s=128

tadyjp

February 07, 2014
Tweet

Transcript

  1. ୈճ&MBTUJD4FBSDIษڧձ !UBEZ@KQ  &MBTUJD4FBSDIྺ೥ 4PMSྺϲ݄ https://github.com/tadyjp/test_driven_search 

  2. p ݕࡧΤϯδϯ p  ͳʹ͔ͱ4PMSͱൺֱ͞ΕΔ p ՄࢹԽ p  ,JCBOB-PH4UBTI'MVFOUEք۾ p  ࠷ۙ.BSWFMͱ͔ग़·ͨ͠Ͷ https://github.com/tadyjp/test_driven_search 

    à ࠓճͷςʔϚ
  3. https://github.com/tadyjp/test_driven_search  ͕ࠩॖ·͍ͬͯΔʂ

  4. 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 
  5. p  ެࣜαΠτ p  େମ͜͜Ͱ଍ΓΔ p  ॻ੶ p  ֓ཁΛ೺Ѳ͢Δͷʹศར p  ͔͠͠ӳޠ

    p  4UBDL0WFS'MPX p  ͋ͳ͕ͨϋϚΔͱ͜͸ɼΈΜͳϋϚ͍ͬͯΔ p  .BJMJOH-JTU p  ݕࡧੑ͕ɽɽɽ p  ௚઀ΫΤϦΛௐࠪ p  $ISPNFr4FOTF͕ศར https://github.com/tadyjp/test_driven_search 
  6. [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 
  7. https://github.com/tadyjp/test_driven_search  શจݕࡧ ෳࡶͳݕࡧ ෳࡶͳιʔτ ϋΠϥΠτ ཁ໿ 'BDFUݕࡧ ஫: ฐࣾͷ99%͸SolrͰͰ͖͍ͯ·͢

  8. ࠷ѱɺ"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 
  9. p  ։ൃऀʮݕࡧͬͯͳʹ͔࢓༷͋Γ·͔͢ʁʯ p  ઃܭऀʮΜʙɺී௨ʹશจݕࡧͰ͖Ε͹͍͍Αʯ p  ։ൃऀʢී௨ͬͯɻɻʣ p  ։ൃऀʮ͡Ό͋ɺςΩτʔʹ΍Γ·͢Ͷʯ p  ઃܭऀʮΑΖ͘͠ʙʯ

    ʢʀʉдʉʣ ϋΠɺࢮ๢ϑϥά https://github.com/tadyjp/test_driven_search 
  10. p  ςελʔʮ͜Εɺඞཁͳจॻ͕)JU͠ͳ͍Αʯ p  ։ൃऀɹʮ͢Μ·ͤΜʯʢʉʔʉ ʎ p  ςελʔʮ͜Εɺअຐͳจॻ͕ࠞ͟Γ͗͢͡Όͳ͍ʁʯ p  ։ൃऀɹʮ͢Μ·ͤΜʯʋ ʔ@ʔ

    ϊ p  Ӧۀɹɹʮ͝ΊʔΜɻΫϥΠΞϯτ͔ΒͷϑΥʔϚοτมΘͬͨʯ p  ઃܭऀɹʮ͠Όʔͳ͍ͳɻ ɹɹɹɹɹɹɹೲظ৳ͼͯ΋͍͍͔Β։ൃऀΑΖ͘͠ʂʯ p  ։ൃऀɹʮ͑ͬʯ ʄϩʄ  p  σβΠφʮݕࡧϑΥʔϜʹΦʔτίϯϓϦʔτ௥Ճ͍ͨ͠ʯ p  ։ൃऀɹʮͦΕૣ͘ݴͬͯཉ͔ͬͨ͠ͳ͊ʯ ʄʄʣ p  Ϛʔέɹʮෆཁͳϖʔδʹ͸ϦϯΫΛுͬͯ΄͘͠ͳ͍Αʯ p  ։ൃऀɹʮͦΕ΋ૣ͘ݴͬͯཉ͔ͬͨ͠ͳ͊ʯᵇ ʉʔʉ ᵃ p  ઃܭऀɹʮಉ͡ݕࡧ৚݅ͳΒ˛˛Λ˙˙ΑΓ্Ґʹग़ͯ͠ཉ͍͠ʯ p  ։ൃऀɹʮͦΜͳ࢓༷ฉ͍ͯͳ͍ʂ͢Μ·ͤΜʯ ϊшɾɻ  https://github.com/tadyjp/test_driven_search 
  11. https://github.com/tadyjp/test_driven_search  ͦΕɺ 3TQFDͰղܾͰ͖Δ͔΋

  12. p ϨετϥϯݕࡧαʔϏεͱԾఆ p σʔληοτͱͯ͠ ʮMJWFEPPSάϧϝ%BUB4FUʯΛར༻ p αʔόʹ͸4JOBUSB SVCZ Λ࢖͏ p ཁ݅ ௨ৗͷશจݕࡧʗ'BDFUݕࡧ #PPTUʹΑΔ༏ઌ෇͚ ΦʔτίϯϓϦʔτʗ΋͔ͯ͠͠ʁػೳ

    https://github.com/tadyjp/test_driven_search 
  13. ݕࡧ ߜΓࠐΈ 'BDFUT  ݅਺΋ग़Δ σʔλ͸ %#͔Β &MBTUJD4FBSDI .Z42- *%ͷΈ

    ҾͬுΔ https://github.com/tadyjp/test_driven_search 
  14. Φʔτ ίϯϓϦʔτ 4VHHFTU  https://github.com/tadyjp/test_driven_search 

  15. දهΛ ؒҧ͑Δͱ… ʮ΋͔ͯ͠͠ʁʯ 4VHHFTU  https://github.com/tadyjp/test_driven_search 

  16. https://github.com/tadyjp/test_driven_search  "DUJWF3FDPSE FMBTUJDTFBSDISVCZ (FNΛར༻

  17. ϨϓϦΧઃఆ 5PLFOJ[FS 5PLFO'JMUFS "OBMZ[FS 5PLFOJ[FS 5PLFO'*MUFST https://github.com/tadyjp/test_driven_search 

  18. &MBTUJD4FBSDI಺ͷJEΛ %#ͷJEͱಉ͡ʹ͢Δ ݕࡧจࣈྻ͸ جຊతʹܗଶૉ෼ղ https://github.com/tadyjp/test_driven_search  ݕࡧ͠ͳ͍'JFME͸ ͦͷ··อ࣋

  19. https://github.com/tadyjp/test_driven_search  ݕࡧͷϝΠϯ෦෼ ͭͷpFMEΛݕࡧର৅ JE͚ͩฦ͢

  20. ςετ༻JOEFY໊ PWFSSJEF ςετσʔλ ౤ೖ https://github.com/tadyjp/test_driven_search 

  21. ͍͔ͭ͘ͷςετ (v^ʔ°) Ϡολω https://github.com/tadyjp/test_driven_search 

  22. https://github.com/tadyjp/test_driven_search  IJUTIJUT<>pFMETJE<> ͳKTPOߏ଄

  23. ʮژ౎ʯͰݕࡧ (Ň´Д㱬)͏͎ŋŋŋŇ https://github.com/tadyjp/test_driven_search 

  24. https://github.com/tadyjp/test_driven_search  ͜ΕΛ ॅॴΛܗଶૉͰ ෼ղͯ͠΍Δ ͜͏͢Δ (v^ʔ°) Ϡολω

  25. OBNFʹʮ৽॓ʯ͕ ೖ͍ͬͯΔํ͕ ઌʹग़͖ͯͯཉ͍͠ (Ň´Д㱬)͏͎ŋŋŋŇ https://github.com/tadyjp/test_driven_search 

  26. ʮOBNFʯΛഒ ͩʂ https://github.com/tadyjp/test_driven_search  (v^ʔ°) Ϡολω

  27. ͜Μͳײ͡Ͱ ฦͬͯ͘Δ https://github.com/tadyjp/test_driven_search  ʮQSFG@JEʯͰ 'BDFUݕࡧ (v^ʔ°) Ϡολω

  28. ͜Μͳײ͡Ͱ ฦͬͯ͘Δ https://github.com/tadyjp/test_driven_search  (Ň´Д㱬)͏͎ŋŋŋŇ

  29. ͳΜ͔ɺOHSBNͰ ෼ղ͞ΕͯΔʂ $ISPNFr4FOTF Ͱ݁ՌΛݟͯΈΔͱ https://github.com/tadyjp/test_driven_search 

  30. .VMUJpFMEͳσʔλ΁͸ ϐϦΦυͰΞΫηε https://github.com/tadyjp/test_driven_search  ͜ΕΛ NVMUJpFMEUZQFͰ ҟͳΔ"OBMZ[FSΛద༻ ͜͏͢Δ (v^ʔ°) Ϡολω

  31. ΦʔτίϯϓϦʔτ͸ ݕࡧͱ͸ҟͳΔϦΫΤετ ʮϥʔʯͱೖྗதʹ ʮϥʔϝϯʯ͕ग़͖ͯͯཉ͍͠ https://github.com/tadyjp/test_driven_search 

  32. ΦʔτίϯϓϦʔτ͸ ݕࡧͱ͸ҟͳΔϦΫΤετ ʮϥʔʯͱೖྗதʹ ʮϥʔϝϯʯ͕ग़͖ͯͯཉ͍͠ https://github.com/tadyjp/test_driven_search  (Ň´Д㱬)͏͎ŋŋŋŇ ͳΜ͔ώϯτ͕

  33. DPNQMFUJPOUZQFΛ௥Ճ 'JFME໊΋มΘΔ https://github.com/tadyjp/test_driven_search  (v^ʔ°) Ϡολω

  34. https://github.com/tadyjp/test_driven_search 

  35. https://github.com/tadyjp/test_driven_search 

  36. https://github.com/tadyjp/test_driven_search    ͜Μͳײ͡ͰSVCZʹΑΔ ςετۦಈݕࡧ Λ͓ಧ͚͠·ͨ͠ɻ   

  37. https://github.com/tadyjp/test_driven_search  8FBSFIJSJOH%FWFMPQFST