Slide 1

Slide 1 text

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

Slide 2

Slide 2 text

No content

Slide 3

Slide 3 text

IUUQTTXFFUUPSUFDPN ࡀҎ্ݶఆ

Slide 4

Slide 4 text

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

Slide 5

Slide 5 text

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

Slide 6

Slide 6 text

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

Slide 7

Slide 7 text

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

Slide 8

Slide 8 text

Ϛονͨ͠ϢʔβʔΛআ͘ ͭͷํ๏

Slide 9

Slide 9 text

w ύλʔϯ" w EPDVNFOUʹ࣋ͨͤΔ w ύλʔϯ# w RVFSZʹ࣋ͨͤΔ w ύλʔϯ$ w 1BSFOUDIJMEΛ࢖͏ Ϛονͨ͠ϢʔβʔΛআͭ͘ͷํ๏

Slide 10

Slide 10 text

Ϛονͨ͠ϢʔβʔΛআͭ͘ͷํ๏ 6TFSEPDVNFOU JE OBNF ͋΍Ͷ HFOEFS GFNBMF CJSUIEBZ CJSUI@BSFB ౦ژ౎ CMPPE@UZQF # IFJHIU

Slide 11

Slide 11 text

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

Slide 12

Slide 12 text

Ϛονͨ͠ϢʔβʔΛআͭ͘ͷํ๏ dύλʔϯ"d

Slide 13

Slide 13 text

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

Slide 14

Slide 14 text

6TFSEPDVNFOU JE OBNF ͋΍Ͷ HFOEFS GFNBMF CJSUIEBZ CJSUI@BSFB ౦ژ౎ CMPPE@UZQF # IFJHIU FYDMVEF@VTFST ʜ ϝϦοτ w γϯϓϧ w ݕࡧ͕଎͍ σϝϦοτ w FYDMVEF@VTFSTͷංେԽ w ߋ৽͕஗͘ͳΔ dύλʔϯ"d Ϛονͨ͠ϢʔβʔΛআͭ͘ͷํ๏

Slide 15

Slide 15 text

Ϛονͨ͠ϢʔβʔΛআͭ͘ͷํ๏ "mappings" : { "user": { "properties": { "id": { "type": "keyword" }, "name": { "type": "keyword", "index": false }, /* தུ */ "exclude_users": { "type": "keyword" } } } }

Slide 16

Slide 16 text

Ϛονͨ͠ϢʔβʔΛআͭ͘ͷํ๏ { "query": { "bool": { "must_not": { "term": { "exclude_users": "16" } } } } }

Slide 17

Slide 17 text

Ϛονͨ͠ϢʔβʔΛআͭ͘ͷํ๏ dύλʔϯ#d

Slide 18

Slide 18 text

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

Slide 19

Slide 19 text

6TFSEPDVNFOU JE OBNF ͋΍Ͷ HFOEFS GFNBMF CJSUIEBZ CJSUI@BSFB ౦ژ౎ CMPPE@UZQF # IFJHIU ϝϦοτ w γϯϓϧ w ߋ৽ॲཧ͕଎͍ σϝϦοτ w ݕࡧΫΤϦͷංେԽ w ݕࡧ͕஗͘ͳΔ dύλʔϯ#d Ϛονͨ͠ϢʔβʔΛআͭ͘ͷํ๏

Slide 20

Slide 20 text

Ϛονͨ͠ϢʔβʔΛআͭ͘ͷํ๏ { "query": { "bool": { "must_not": { "terms": { "id": ["1", "6", "9", "13"] } } } } }

Slide 21

Slide 21 text

Ϛονͨ͠ϢʔβʔΛআͭ͘ͷํ๏ dύλʔϯ$d

Slide 22

Slide 22 text

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

Slide 23

Slide 23 text

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

Slide 24

Slide 24 text

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Ͱ࠾༻

Slide 25

Slide 25 text

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

Slide 26

Slide 26 text

Ϛονͨ͠ϢʔβʔΛআͭ͘ͷํ๏ { "query": { "bool": { "must_not": { "has_child": { "type": "exclude_user", "query": { "term": { "id": "16" } } } } } } }

Slide 27

Slide 27 text

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&%

Slide 28

Slide 28 text

KPJOEBUBUZQF Ϛονͨ͠ϢʔβʔΛআͭ͘ͷํ๏ IUUQTXXXFMBTUJDDPHVJEFFOFMBTUJDTFBSDISFGFSFODFYQBSFOUKPJOIUNM

Slide 29

Slide 29 text

&MBTUJDTFBSDIPO&$

Slide 30

Slide 30 text

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

Slide 31

Slide 31 text

&MBTUJD$MPVE w &MBTUJDࣾެࣜͷϑϧϚωʔδυαʔϏε w ೝূ w )5514઀ଓͷ#BTJDೝূͰ࣮૷͕؆୯ w ,JCBOBͷ6*͔ΒϢʔβʔ௥Ճ w ࡉ͔͍3PMFͷ؅ཧ͕Մೳ w ࠷৽ͷ&MBTUJDTFBSDI͕ར༻Մೳ &MBTUJDTFBSDIPO&$&MBTUJD$MPVE

Slide 32

Slide 32 text

&MBTUJD$MPVE w μ΢ϯλΠϜͳ͠Ͱखಈεέʔϧ w &MBTUJDTFBSDIͷϩάΛ؅ཧը໘͔Β֬ೝ Ͱ͖Δ w ࣗಈͰTOBQTIPUΛ4ʹ౤͛ΒΕΔ w "84ͱ($1ͷ্Ͱར༻Մೳ w ϢʔβʔࣙॻͱεΫϦϓτʹରԠ &MBTUJDTFBSDIPO&$&MBTUJD$MPVE

Slide 33

Slide 33 text

"NB[PO&MBTUJDTFBSDI4FSWJDF w "84ͷϑϧϚωʔδυαʔϏε w ೝূ w *".͕ར༻Մೳ w &MBTUJDTFBSDI͕ར༻Մೳ d &MBTUJDTFBSDIPO&$"NB[PO&MBTUJDTFBSDI4FSWJDF

Slide 34

Slide 34 text

"NB[PO&MBTUJDTFBSDI4FSWJDF w ࣗಈTOBQTIPU͕ར༻Մೳ 4 w ΠϯελϯεͷλΠϓ΍Ϋϥελͷߏ੒Λ ࡉ͔͘ઃఆՄೳ w ,JOFTJT'JSFIPTF 
 -BNCEB 
 $MPVE8BUDIͱͷ਌࿨ੑͷߴ͞ &MBTUJDTFBSDIPO&$"NB[PO&MBTUJDTFBSDI4FSWJDF

Slide 35

Slide 35 text

w &MBTUJD$MPVE w 91BDL΋࢖͑ͯશ෦ೖΓ w ࠷৽ͷ&MBTUJDTFBSDI͕࢖͑Δ w ($1΋બ΂Δ w "NB[PO&MBTUJDTFBSDI4FSWJDF w ϩάूܭͱՄࢹԽ͕໨తͷ৭͕ڧ͍ w طଘͷϚωδϝϯταʔϏεͱͷ౷߹͕ڧྗ w ݕࡧͱͯ͠͸$MPVE4FBSDI΋͋Δ &MBTUJDTFBSDIPO&$ൺֱ

Slide 36

Slide 36 text

ෛՙࢼݧ w ϦϦʔε೥ޙ΍ɺλοϓϧ஀ੜن໛ʹ੒௕ ͨ͠৔߹ͷෛՙΛ૝ఆ w (BUMJOH
 IUUQHBUMJOHJP &MBTUJDTFBSDIPO&$

Slide 37

Slide 37 text

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

Slide 38

Slide 38 text

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

Slide 39

Slide 39 text

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

Slide 40

Slide 40 text

ߏ੒ w NBTUFSOPEFY w EBUBOPEFY &MBTUJDTFBSDIPO&$

Slide 41

Slide 41 text

ઃఆ FMBTUJDTFBSDIZNM w TXBQ QBHJOH ʹΑΔੑೳྼԽΛ๷͙ w JOEFYͷࣗಈ࡞੒ʹΑΔҙਤ͠ͳ͍ڍಈΛ๷͙ &MBTUJDTFBSDIPO&$ bootstrap.memory_lock: true action.auto_create_index: "+*,-data-*"

Slide 42

Slide 42 text

JOEFYઃܭ NBQQJOH w @TPVSDF͸6QEBUF"1*ͷͨΊʹ༗ޮԽ w @BMM͸ແޮԽ &MBTUJDTFBSDIPO&$ "_source": {"enabled": true} "_all": {"enabled": false}

Slide 43

Slide 43 text

JOEFYઃܭ NBQQJOH w EZOBNJD͸ແޮʹ BVUP@DSFBUF@JOEFYͱಉ͡ཧ༝ w ݕࡧର৅ʹͳΒͳ͍pFME͸JOEFY͠ͳ͍ &MBTUJDTFBSDIPO&$ "dynamic": false "name": { "type": "keyword", "index": false }

Slide 44

Slide 44 text

·ͱΊ

Slide 45

Slide 45 text

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

Slide 46

Slide 46 text

w 1BSFOU$IJME3FMBUJPOTIJQ
 IUUQTXXXFMBTUJDDPHVJEFFOFMBTUJDTFBSDI HVJEFDVSSFOUQBSFOUDIJMEIUNM w KPJOEBUBUZQF
 IUUQTXXXFMBTUJDDPHVJEFFOFMBTUJDTFBSDI SFGFSFODFYQBSFOUKPJOIUNM w %JTBCMFTXBQQJOH
 IUUQTXXXFMBTUJDDPHVJEFFOFMBTUJDTFBSDI SFGFSFODFDVSSFOUTFUVQDPOpHVSBUJPO NFNPSZIUNM ·ͱΊࢀߟจݙ

Slide 47

Slide 47 text

5)"/,:06