トルテが実践したマッチしたユーザーを除く3つの方法/torte-es

95c11fa7a33151f329b1841d6791eeb0?s=47 Take
September 11, 2017

 トルテが実践したマッチしたユーザーを除く3つの方法/torte-es

95c11fa7a33151f329b1841d6791eeb0?s=128

Take

September 11, 2017
Tweet

Transcript

  1. τϧς͕࣮ફͨ͠ Ϛονͨ͠ϢʔβʔΛআͭ͘ͷํ๏ த઒෢ݑ גࣜձࣾτϧςαʔόʔαΠυΤϯδχΞ $"JP 

  2. None
  3. IUUQTTXFFUUPSUFDPN ࡀҎ্ݶఆ

  4. ϨσΟʔϑΝʔετͷ࿀ΞϓϦ Torte

  5. ϨσΟʔϑΝʔετͷ࿀ΞϓϦ உੑ΁ͷΫνίϛͱ
 ϑΝʔετϝοηʔδ͸
 ঁੑͷಛݖ ࣗݾ঺հͰ͸ද͖͠Εͳ͍ɺ
 ࣸਅͱςΩετ͕ରʹͳͬͨ
 ΞϧόϜͰදݱ͞ΕΔݸੑ ঁੑͷಛݖ ΞϧόϜ

  6. த઒෢ݑ 5",&/03*/","("8" גࣜձࣾτϧςαʔόʔαΠυΤϯδχΞ ೥౓ೖࣾ ࣗݾ঺հ IUUQTHJUIVCDPNXX

  7. Ϛονͨ͠ϢʔβʔΛআͭ͘ͷํ๏ &MBTUJDTFBSDIPO&$ "HFOEB w ϩδοΫ w ύϑΥʔϚϯε w Ϋϥ΢υൺֱ w

    ෛՙࢼݧ
  8. Ϛονͨ͠ϢʔβʔΛআ͘ ͭͷํ๏

  9. w ύλʔϯ" w EPDVNFOUʹ࣋ͨͤΔ w ύλʔϯ# w RVFSZʹ࣋ͨͤΔ w ύλʔϯ$

    w 1BSFOUDIJMEΛ࢖͏ Ϛονͨ͠ϢʔβʔΛআͭ͘ͷํ๏
  10. Ϛονͨ͠ϢʔβʔΛআͭ͘ͷํ๏ 6TFSEPDVNFOU JE  OBNF ͋΍Ͷ HFOEFS GFNBMF CJSUIEBZ 

    CJSUI@BSFB ౦ژ౎ CMPPE@UZQF # IFJHIU 
  11. Ϛονͨ͠ϢʔβʔΛআͭ͘ͷํ๏ w طʹϚον͍ͯ͠Δ৔߹ w ϒϩοΫ͍ͯ͠Δ৔߹ w ඇදࣔʹ͍ͯ͠Δ৔߹ ݕࡧ݁Ռʹग़ͯ͸͍͚ͳ͍ 6TFSEPDVNFOU JE

     OBNF ͋΍Ͷ HFOEFS GFNBMF CJSUIEBZ  CJSUI@BSFB ౦ژ౎ CMPPE@UZQF # IFJHIU 
  12. Ϛονͨ͠ϢʔβʔΛআͭ͘ͷํ๏ dύλʔϯ"d

  13. 6TFSEPDVNFOU JE  OBNF ͋΍Ͷ HFOEFS GFNBMF CJSUIEBZ  CJSUI@BSFB

    ౦ژ౎ CMPPE@UZQF # IFJHIU  FYDMVEF@VTFST   ʜ 6TFS*% dύλʔϯ"d FYDMVEFVTFSTʹࣗ෼ؚ͕·Ε ͍ͯͳ͍EPDVNFOUΛݕࡧ Ϛονͨ͠ϢʔβʔΛআͭ͘ͷํ๏
  14. 6TFSEPDVNFOU JE  OBNF ͋΍Ͷ HFOEFS GFNBMF CJSUIEBZ  CJSUI@BSFB

    ౦ژ౎ CMPPE@UZQF # IFJHIU  FYDMVEF@VTFST   ʜ ϝϦοτ w γϯϓϧ w ݕࡧ͕଎͍ σϝϦοτ w FYDMVEF@VTFSTͷංେԽ w ߋ৽͕஗͘ͳΔ dύλʔϯ"d Ϛονͨ͠ϢʔβʔΛআͭ͘ͷํ๏
  15. Ϛονͨ͠ϢʔβʔΛআͭ͘ͷํ๏ "mappings" : { "user": { "properties": { "id": {

    "type": "keyword" }, "name": { "type": "keyword", "index": false }, /* தུ */ "exclude_users": { "type": "keyword" } } } }
  16. Ϛονͨ͠ϢʔβʔΛআͭ͘ͷํ๏ { "query": { "bool": { "must_not": { "term": {

    "exclude_users": "16" } } } } }
  17. Ϛονͨ͠ϢʔβʔΛআͭ͘ͷํ๏ dύλʔϯ#d

  18. 6TFSEPDVNFOU JE  OBNF ͋΍Ͷ HFOEFS GFNBMF CJSUIEBZ  CJSUI@BSFB

    ౦ژ౎ CMPPE@UZQF # IFJHIU  ݕࡧΫΤϦͰ
 FYDMVEFVTFSTΛࢦఆ dύλʔϯ#d Ϛονͨ͠ϢʔβʔΛআͭ͘ͷํ๏
  19. 6TFSEPDVNFOU JE  OBNF ͋΍Ͷ HFOEFS GFNBMF CJSUIEBZ  CJSUI@BSFB

    ౦ژ౎ CMPPE@UZQF # IFJHIU  ϝϦοτ w γϯϓϧ w ߋ৽ॲཧ͕଎͍ σϝϦοτ w ݕࡧΫΤϦͷංେԽ w ݕࡧ͕஗͘ͳΔ dύλʔϯ#d Ϛονͨ͠ϢʔβʔΛআͭ͘ͷํ๏
  20. Ϛονͨ͠ϢʔβʔΛআͭ͘ͷํ๏ { "query": { "bool": { "must_not": { "terms": {

    "id": ["1", "6", "9", "13"] } } } } }
  21. Ϛονͨ͠ϢʔβʔΛআͭ͘ͷํ๏ dύλʔϯ$d

  22. 6TFSEPDVNFOU JE  OBNF ͋΍Ͷ HFOEFS GFNBMF CJSUIEBZ  CJSUI@BSFB

    ౦ژ౎ CMPPE@UZQF # IFJHIU  dύλʔϯ$d FYDMVEFVTFS EPDVNFOU JE  SFBTPO ϚονࡁΈ ݕࡧΫΤϦͰFYDMVEFVTFS
 ࣗ෼ Λࢠʹ࣋ͨͳ͍
 EPDVNFOUΛݕࡧ 6TFS*% Ϛονͨ͠ϢʔβʔΛআͭ͘ͷํ๏
  23. 6TFSEPDVNFOU JE  OBNF ͋΍Ͷ HFOEFS GFNBMF CJSUIEBZ  CJSUI@BSFB

    ౦ژ౎ CMPPE@UZQF # IFJHIU  FYDMVEFVTFS EPDVNFOU JE  SFBTPO ϚονࡁΈ ϝϦοτ w ൺֱతݕࡧ΋ߋ৽΋଎͍ σϝϦοτ w ෳࡶ w FYDMVEFVTFSͷ෼
 EPDVNFOU਺͕૿Ճ w 1BSFOUDIJME͸&4ܥͰ
 ࢓༷มߋ͕༧ఆ͞Ε͍ͯΔ Ϛονͨ͠ϢʔβʔΛআͭ͘ͷํ๏ dύλʔϯ$d
  24. 6TFSEPDVNFOU JE  OBNF ͋΍Ͷ HFOEFS GFNBMF CJSUIEBZ  CJSUI@BSFB

    ౦ژ౎ CMPPE@UZQF # IFJHIU  FYDMVEFVTFS EPDVNFOU JE  SFBTPO ϚονࡁΈ ϝϦοτ w ൺֱతݕࡧ΋ߋ৽΋଎͍ σϝϦοτ w ෳࡶ w FYDMVEFVTFSͷ෼
 EPDVNFOU਺͕૿Ճ w 1BSFOUDIJME͸&4ܥͰ
 ࢓༷มߋ͕༧ఆ͞Ε͍ͯΔ Ϛονͨ͠ϢʔβʔΛআͭ͘ͷํ๏ dύλʔϯ$d 5PSUFͰ࠾༻
  25. Ϛονͨ͠ϢʔβʔΛআͭ͘ͷํ๏ "mappings" : { "user": { "properties": { "id": {

    "type": "keyword" }, /* தུ */ } }, "exclude_user": { "_parent": { "type": "user" }, "properties": { "id": { "type": "keyword" }, "reason": { "type": "short" } } } }
  26. Ϛονͨ͠ϢʔβʔΛআͭ͘ͷํ๏ { "query": { "bool": { "must_not": { "has_child": {

    "type": "exclude_user", "query": { "term": { "id": "16" } } } } } } }
  27. 6TFSEPDVNFOU JE  OBNF ͋΍Ͷ HFOEFS GFNBMF CJSUIEBZ  CJSUI@BSFB

    ౦ژ౎ CMPPE@UZQF # IFJHIU  FYDMVEFVTFS EPDVNFOU JE  SFBTPO ϚονࡁΈ ϝϦοτ w ൺֱతݕࡧ΋ߋ৽΋଎͍ σϝϦοτ w ෳࡶ w FYDMVEFVTFSͷ෼
 EPDVNFOU਺͕૿Ճ w 1BSFOUDIJME͸&4ܥͰ
 ࢓༷มߋ͕༧ఆ͞Ε͍ͯΔ Ϛονͨ͠ϢʔβʔΛআͭ͘ͷํ๏ dύλʔϯ$d 5PSUFͰ࠾༻ %&13&$"5&%
  28. KPJOEBUBUZQF Ϛονͨ͠ϢʔβʔΛআͭ͘ͷํ๏ IUUQTXXXFMBTUJDDPHVJEFFOFMBTUJDTFBSDISFGFSFODFYQBSFOUKPJOIUNM

  29. &MBTUJDTFBSDIPO&$

  30. w &MBTUJD$MPVE w "NB[PO&MBTUJDTFBSDI4FSWJDF &MBTUJDTFBSDIPO&$ൺֱ

  31. &MBTUJD$MPVE w &MBTUJDࣾެࣜͷϑϧϚωʔδυαʔϏε w ೝূ w )5514઀ଓͷ#BTJDೝূͰ࣮૷͕؆୯ w ,JCBOBͷ6*͔ΒϢʔβʔ௥Ճ w

    ࡉ͔͍3PMFͷ؅ཧ͕Մೳ w ࠷৽ͷ&MBTUJDTFBSDI͕ར༻Մೳ &MBTUJDTFBSDIPO&$&MBTUJD$MPVE
  32. &MBTUJD$MPVE w μ΢ϯλΠϜͳ͠Ͱखಈεέʔϧ w &MBTUJDTFBSDIͷϩάΛ؅ཧը໘͔Β֬ೝ Ͱ͖Δ w ࣗಈͰTOBQTIPUΛ4ʹ౤͛ΒΕΔ w "84ͱ($1ͷ্Ͱར༻Մೳ

    w ϢʔβʔࣙॻͱεΫϦϓτʹରԠ &MBTUJDTFBSDIPO&$&MBTUJD$MPVE
  33. "NB[PO&MBTUJDTFBSDI4FSWJDF w "84ͷϑϧϚωʔδυαʔϏε w ೝূ w *".͕ར༻Մೳ w &MBTUJDTFBSDI͕ར༻Մೳ d

    &MBTUJDTFBSDIPO&$"NB[PO&MBTUJDTFBSDI4FSWJDF
  34. "NB[PO&MBTUJDTFBSDI4FSWJDF w ࣗಈTOBQTIPU͕ར༻Մೳ 4  w ΠϯελϯεͷλΠϓ΍Ϋϥελͷߏ੒Λ ࡉ͔͘ઃఆՄೳ w ,JOFTJT'JSFIPTF

    
 -BNCEB 
 $MPVE8BUDIͱͷ਌࿨ੑͷߴ͞ &MBTUJDTFBSDIPO&$"NB[PO&MBTUJDTFBSDI4FSWJDF
  35. w &MBTUJD$MPVE w 91BDL΋࢖͑ͯશ෦ೖΓ w ࠷৽ͷ&MBTUJDTFBSDI͕࢖͑Δ w ($1΋બ΂Δ w "NB[PO&MBTUJDTFBSDI4FSWJDF

    w ϩάूܭͱՄࢹԽ͕໨తͷ৭͕ڧ͍ w طଘͷϚωδϝϯταʔϏεͱͷ౷߹͕ڧྗ w ݕࡧͱͯ͠͸$MPVE4FBSDI΋͋Δ &MBTUJDTFBSDIPO&$ൺֱ
  36. ෛՙࢼݧ w ϦϦʔε೥ޙ΍ɺλοϓϧ஀ੜن໛ʹ੒௕ ͨ͠৔߹ͷෛՙΛ૝ఆ w (BUMJOH
 IUUQHBUMJOHJP &MBTUJDTFBSDIPO&$

  37. ෛՙࢼݧ &MBTUJDTFBSDIPO&$ ෛՙʹ଱͑ͨ࣌ ෛՙʹ଱͑ΒΕͳ͔ͬͨ࣌

  38. ෛՙࢼݧ &MBTUJDTFBSDIPO&$ ෛՙʹ଱͑ͨ࣌ ෛՙʹ଱͑ΒΕͳ͔ͬͨ࣌

  39. &MBTUJDTFBSDIPO&$ w ߏஙӡ༻Ͱ͖ΔΤϯδχΞ͕ډΕ͹
 ίετύϑΥʔϚϯε࠷ڧ w BOTJCMFͰ؅ཧͯ͠ɺԣ࣠૊৫Ͱڞ༗ &MBTUJDTFBSDIPO&$ ٕज़ຊ෦43(͋Γ͕ͱ͏ IUUQTEFWFMPQFSTDZCFSBHFOUDPKQCMPHBSDIJWFT

  40. ߏ੒ w NBTUFSOPEFY w EBUBOPEFY &MBTUJDTFBSDIPO&$

  41. ઃఆ FMBTUJDTFBSDIZNM  w TXBQ QBHJOH ʹΑΔੑೳྼԽΛ๷͙ w JOEFYͷࣗಈ࡞੒ʹΑΔҙਤ͠ͳ͍ڍಈΛ๷͙ &MBTUJDTFBSDIPO&$

    bootstrap.memory_lock: true action.auto_create_index: "+*,-data-*"
  42. JOEFYઃܭ NBQQJOH  w @TPVSDF͸6QEBUF"1*ͷͨΊʹ༗ޮԽ w @BMM͸ແޮԽ &MBTUJDTFBSDIPO&$ "_source": {"enabled":

    true} "_all": {"enabled": false}
  43. JOEFYઃܭ NBQQJOH  w EZOBNJD͸ແޮʹ BVUP@DSFBUF@JOEFYͱಉ͡ཧ༝  w ݕࡧର৅ʹͳΒͳ͍pFME͸JOEFY͠ͳ͍ &MBTUJDTFBSDIPO&$

    "dynamic": false "name": { "type": "keyword", "index": false }
  44. ·ͱΊ

  45. զʑ͸&MBTUJDTFBSDIʹ
 ޲͖߹͍͔ͬͯͳ͚Ε͹ͳΒͳ͍ ·ͱΊ

  46. w 1BSFOU$IJME3FMBUJPOTIJQ
 IUUQTXXXFMBTUJDDPHVJEFFOFMBTUJDTFBSDI HVJEFDVSSFOUQBSFOUDIJMEIUNM w KPJOEBUBUZQF
 IUUQTXXXFMBTUJDDPHVJEFFOFMBTUJDTFBSDI SFGFSFODFYQBSFOUKPJOIUNM w %JTBCMFTXBQQJOH


    IUUQTXXXFMBTUJDDPHVJEFFOFMBTUJDTFBSDI SFGFSFODFDVSSFOUTFUVQDPOpHVSBUJPO NFNPSZIUNM ·ͱΊࢀߟจݙ
  47. 5)"/,:06