å ã®è³æãžã®ãªã³ã¯ïŒ KibanaãŠãŒã¶ãŒã¬ã€ã[6.6]»èŠèŠå
ããŒã1ïŒ KibanaãŠãŒã¶ãŒã¬ã€ããžã®ãªã³ã¯ã èŠèŠåã ããŒã1
å 容ïŒ
- èŠèŠåã®å¶åŸ¡
- ããŒã¿è¡š
- ããŒã¯ããŠã³ãŠã£ãžã§ãã
- ã¡ãŒãã«æ³
èŠèŠåã®å¶åŸ¡
èŠå ãã®æ©èœã¯å®éšçãªãã®ã§ãããå°æ¥ã®ãªãªãŒã¹ã§å€æŽãŸãã¯åé€ãããå¯èœæ§ããããŸãã Elasticã¯åé¡ã解決ããããã«æåãå°œãããŸãããå®éšçãªæ©èœã¯SLAå ¬åŒGAæ©èœã§ã¯ãµããŒããããŠããŸããã
ã³ã³ãããŒã«ã®èŠèŠåã«ãããKibanaããã·ã¥ããŒãã«ã€ã³ã¿ã©ã¯ãã£ããªå ¥åãè¿œå ã§ããŸãã ããããããŠã³ãªã¹ããŸãã¯äžå¯Ÿå€ã®ã©ãžãªãã¿ã³ã®2çš®é¡ã®çä¿¡æ å ±ãäœæã§ããŸãã
å ¥åã³ã³ãããŒã«ãè¿œå ãã
ã³ã³ãããŒã«ã®èŠèŠåãåæåããã«ã¯ãèŠèŠåã¿ããéããŠ+ãã¿ã³ãã¯ãªãã¯ããŸãã [ ãã®ä»]ã»ã¯ã·ã§ã³ãŸã§ã¹ã¯ããŒã«ãã[ ã³ã³ãããŒã«]ãéžæããŸãã
ããããããŠã³ã¡ãã¥ãŒ
ããããããŠã³ã¡ãã¥ãŒã䜿çšãããšããŠãŒã¶ãŒã¯ãªã¹ããã1ã€ä»¥äžã®ãªãã·ã§ã³ãéžæããŠã³ã³ãã³ãããã£ã«ã¿ãªã³ã°ã§ããŸãã ããããããŠã³ã¡ãã¥ãŒã«ã¯ãå€ã®éèšçµæïŒæéãçŽPerãïŒãåçã«å ¥åãããŸãã
ã³ã³ãããŒã«ã©ãã«ã ããããããŠã³ãªã¹ãã®çœ²åã ããã©ã«ãã§ã¯ã眲åã¯ãã£ãŒã«ãã®ååã§ãã
ã€ã³ããã¯ã¹ãã¿ãŒã³ã èŠèŠåã®ããã®ããŒã¿ã»ãããå«ãã€ã³ããã¯ã¹ãã³ãã¬ãŒã ã
éå ãã®ãã£ãŒã«ãã¯ããªãã·ã§ã³ã®ãªã¹ããèšå®ããããã«äœ¿çšããããŠãŒã¶ãŒãå ¥åãšå¯Ÿè©±ãããšãã«ãã£ã«ã¿ãŒãããŸãã 䜿çšå¯èœãªãã£ãŒã«ãã®ãªã¹ãã¯ãæå®ãããã€ã³ããã¯ã¹ãã³ãã¬ãŒãããååŸãããŸãã
芪ã³ã³ãããŒã«ã ããããããŠã³ã¡ãã¥ãŒã®ãã§ãŒã³ãäœæããããã®ã³ã³ãããŒã«ãæåã®ã¡ãã¥ãŒã§éžæãããšã2çªç®ã®ã¡ãã¥ãŒã®å€ããã£ã«ã¿ãŒãããŸãã è€æ°ã®ããããããŠã³ãªã¹ããäœæããå Žåã«ã®ã¿äœ¿çšã§ããŸãã
è€æ°éžæã æå¹ã«ãããšããŠãŒã¶ãŒã¯ããããããŠã³ã¡ãã¥ãŒã§è€æ°ã®ãªãã·ã§ã³ãéžæã§ããŸãã
倧ãã ãªã¹ãã«å«ãããªãã·ã§ã³ã®æ°ã
ã¬ã³ãžã¹ã©ã€ããŒ
調æŽå¯èœãªç¯å²ã«ããããŠãŒã¶ãŒã¯æ°åã®ã©ã³ã¯å ã§ã³ã³ãã³ãããã£ã«ã¿ãªã³ã°ã§ããŸãã 調æŽå¯èœãªç¯å²ã®æå°å€ãšæ倧å€ã¯ãéèšã®æå°å€ãšæ倧å€ã«ãã£ãŠåçã«æ±ºå®ãããŸãã
ã³ã³ãããŒã«ã©ãã«ã 眲åã®èª¿æŽå¯èœãªç¯å²ã ããã©ã«ãã§ã¯ã眲åã¯ãã£ãŒã«ãã®ååã§ãã
ã€ã³ããã¯ã¹ãã¿ãŒã³ã èŠèŠåã®ããã®ããŒã¿ã»ãããå«ãã€ã³ããã¯ã¹ãã³ãã¬ãŒã ã
éå ãã®ãã£ãŒã«ãã¯ããŠãŒã¶ãŒãåä¿¡ããŒã¿ãšå¯Ÿè©±ãããšãã«ã調æŽå¯èœãªç¯å²ãåããŠãã£ã«ã¿ãªã³ã°ããããã«äœ¿çšãããŸãã 䜿çšå¯èœãªãã£ãŒã«ãã®ãªã¹ãã¯ãç¹å®ã®ã€ã³ããã¯ã¹ãã³ãã¬ãŒãããäœæãããŸãã
ã¹ããããµã€ãºã ã¹ã©ã€ããŒã®ãµã€ãºãå¢æžããŸãã
å°æ°ã®å Žæã å°æ°ç¹ä»¥äžã®æ¡æ°ã
ã°ããŒãã«å€æ°
[ ãªãã·ã§ã³ ]ã¿ããã¯ãªãã¯ããŠãã³ã³ãããŒã«ããžã¥ã¢ã©ã€ãŒãŒã·ã§ã³ã®ãã¹ãŠã®å ¥åã³ã³ãããŒã«ã«é©çšãããèšå®ãæ§æããŸãã
å€æŽããšã«Kibanaãã£ã«ã¿ãŒãæŽæ°ããŸãã æå¹ã«ãããšããã¹ãŠã®ã€ã³ããŠã³ãã€ã³ã¿ã©ã¯ã·ã§ã³ã¯åãæéã«ããã·ã¥ããŒããæŽæ°ãããã£ã«ã¿ãŒãäœæããŸãã ãªãã®å ŽåããŠãŒã¶ãŒã[ å€æŽãé©çš]ãã¯ãªãã¯ãããšãKibanaãã£ã«ã¿ãŒãäœæãããŸã ã
æéãã£ã«ã¿ãŒã䜿çšããŸãã æå¹ã«ãããšããªãã·ã§ã³ã®ããããããŠã³ãªã¹ããšæå°-æ倧ç¯å²ã®çæã«äœ¿çšãããéèšã¯ã Kibanaã°ããŒãã«æéã«é¢é£ä»ããããŸãã
ãã£ã«ã¿ãŒãã°ããŒãã«ç¶æ ã«åºå®ããŸãã æå¹ã«ãããšãå ¥åããŒã¿ãšã®å¯Ÿè©±ã«ãã£ãŠäœæããããã¹ãŠã®ãã£ã«ã¿ãŒãèªåçã«åºå®ãããŸãã
ããŒã¿è¡š
ã¡ããªãã¯éèšïŒ
ã«ãŠã³ã ã«ãŠã³ãéèšã¯ãéžæããã€ã³ããã¯ã¹ãã³ãã¬ãŒãå ã®èŠçŽ ã®æ£å³ã®ã«ãŠã³ããè¿ããŸãã
å¹³å ãã®éèšã¯ãæ°å€ãã£ãŒã«ãã®å¹³åå€ãè¿ããŸãã ããããããŠã³ãªã¹ããããã£ãŒã«ããéžæããŸãã
åèš æ°å€ãã£ãŒã«ãã®åèšéãè¿ããŸãã ããããããŠã³ãªã¹ããããã£ãŒã«ããéžæããŸãã
æå° æ°å€ãã£ãŒã«ãã§æå°å€ãè¿ããŸãã ããããããŠã³ãªã¹ããããã£ãŒã«ããéžæããŸãã
ããã¯ã¹ æ°å€ãã£ãŒã«ãã§æ倧å€ãè¿ããŸãã ããããããŠã³ãªã¹ããããã£ãŒã«ããéžæããŸãã
ãŠããŒã¯ã«ãŠã³ãã ã«ãŒãã£ãã«éçŽã¯ããã£ãŒã«ãå ã®äžæã®å€ã®æ°ãè¿ããŸãã ããããããŠã³ãªã¹ããããã£ãŒã«ããéžæããŸãã
æšæºåå·®ã äžè¬çµ±èšã®éèšã¯ãæ°å€ãã£ãŒã«ãã®ããŒã¿ã®æšæºåå·®ãè¿ããŸãã ããããããŠã³ãªã¹ããããã£ãŒã«ããéžæããŸãã
ããããããã ãããå€ã®éèšã¯ãããã¥ã¡ã³ãã®ç¹å¥ãªãã£ãŒã«ããã1ã€ä»¥äžã®ãããå€ãè¿ããŸãã ããããããŠã³ãªã¹ããããã£ãŒã«ããéžæããããã¥ã¡ã³ãã®äžŠã¹æ¿ãã®çš®é¡ãè¿ãããå€ã®æ°ãéžæããŸãã
ããŒã»ã³ã¿ã€ã«ã ããŒã»ã³ãéèšã¯ãæ°å€ãã£ãŒã«ãã®å€ãæå®ãããç¯å²ã«åå²ããŸãã ããããããŠã³ãªã¹ããããã£ãŒã«ããéžæãã ããŒã»ã³ã¿ã€ã«ãã£ãŒã«ãã§1ã€ä»¥äžã®é åãå®çŸ©ããŸãã [ X]ãã¯ãªãã¯ããŠãããŒã»ã³ããã£ãŒã«ããåé€ããŸãã [ è¿œå ]ãã¯ãªãã¯ããŠãããŒã»ã³ããŒãžãã£ãŒã«ããè¿œå ããŸãã
ããŒã»ã³ã¿ã€ã«ã©ã³ã¯ã ããŒã»ã³ããŒãžéçŽã¯ãéžæããæ°å€ãã£ãŒã«ãã®ããŒã»ã³ããŒãžã©ã³ãã³ã°ãè¿ããŸãã ããããããŠã³ãªã¹ããããã£ãŒã«ããéžæãã[ å€]ãã£ãŒã«ãã§ããŒã»ã³ãã©ã³ã¯ã®1ã€ä»¥äžã®å€ãå®çŸ©ããŸãã Xãã¯ãªãã¯ããŠãå€ãã£ãŒã«ããåé€ããŸãã [ è¿œå ]ãã¯ãªãã¯ããŠãå€ãã£ãŒã«ããè¿œå ããŸãã
芪ããŒã¿ãœãŒã¹ã®éçŽïŒ
芪æ å ±ãœãŒã¹ã®éèšããšã«ãéèšãèšç®ãããã¡ããªãã¯ã決å®ããå¿ èŠããããŸãã ããã¯ãæ¢åã®ã¡ããªãã¯ã®1ã€ã§ããæ°ããã¡ããªãã¯ã§ãããŸããŸããã ãããã®éèšã«æè³ããããšãã§ããŸãïŒããšãã°ã3次å°é¢æ°ãååŸããããïŒã
ããªããã£ãã 埮åéçŽã¯ãç¹å®ã®ã¡ããªãã¯ã®åŸ®åãã«ãŠã³ãããŸãã
环ç©åèšã 环ç©éèšã¯ã芪ãã¹ãã°ã©ã ã®ç¹å®ã®ã¡ããªãã¯ã®çŽ¯ç©åèšãéèšããŸãã
移åå¹³åã 移åå¹³åéèšã¯ãããŒã¿ã«ãŠã£ã³ããŠãæ¿å ¥ãããã®ãŠã£ã³ããŠã®å¹³åå€ãæžã蟌ã¿ãŸãã
ã·ãªã¢ã«å·®å é 次埮åã¯ãæç³»åã®å€ãå¥ã®æéãŸãã¯é 延ã§ããèªäœããæžç®ãããæ¹æ³ã§ãã
é¢é£ãœãŒã¹ã®éçŽïŒ
芪ãœãŒã¹ã®éçŽã®å Žåã®ããã«ãé¢é£ãããœãŒã¹ã®éçŽãèšç®ããã¡ããªãã¯ãæå®ããå¿ èŠããããŸãã ããã«ãã»ã°ã¡ã³ãã®éçŽãæäŸããå¿ èŠããããŸããããã«ãããéçŽãéå§ãããã»ã°ã¡ã³ãã決ãŸããŸãã
å¹³åãã±ãã ã»ã°ã¡ã³ãå¹³åã¯ãé¢é£ãããœãŒã¹ã®éçŽå ã®ç¹å®ã®ã¡ããªãã¯ã®å¹³åãèšç®ããŸãã
åèšãã±ãã é¢é£ãœãŒã¹ã®éçŽå ã®ç¹å®ã®ã¡ããªãã¯ã®å€ã®åèšãèšç®ããŸãã
æå°ãã±ãã é¢é£ãœãŒã¹ã®éçŽå ã®ç¹å®ã®ã¡ããªãã¯ã®æå°å€ãè¿ããŸãã
æ倧ãã±ãã é¢é£ãœãŒã¹ã®éçŽå ã®ç¹å®ã®ã¡ããªãã¯ã®æ倧å€ãè¿ããŸãã
[ +ã¡ããªãã¯ãè¿œå ]ãã¿ã³ãã¯ãªãã¯ããŠãéèšãäœæã§ããŸãã
[ ã«ã¹ã¿ã ã©ãã«]ãã£ãŒã«ãã«æååãå ¥åããŠã眲åãå€æŽããŸãã
ããŒã¿ããŒãã«ã®è¡ã¯ã»ã°ã¡ã³ããšåŒã°ããŸãã ããŒãã«ãè¡ã«åå²ããããããŸãã¯è¿œå ã®ããŒãã«ã«åå²ããããã®ã»ã°ã¡ã³ããå®çŸ©ã§ããŸãã
ã»ã°ã¡ã³ãã®åã¿ã€ãã¯ã次ã®éçŽããµããŒãããŠããŸãã
æ¥ä»ãã¹ãã°ã©ã ã äžæçãªãã¹ãã°ã©ã ã¯ãæ°å€ãã£ãŒã«ãã«åºã¥ããŠäœæãããæ¥ä»ããšã«æŽçãããŸãã ç§ãåãæéãæ¥ãé±ãæããŸãã¯å¹Žã®ééã®æéæ ãå®çŸ©ã§ããŸãã ééãšããŠ[ ã«ã¹ã¿ã ]ãéžæããããã¹ãããã¯ã¹ã«æéãšåäœãæå®ããŠãããã©ã«ãã®ééãå®çŸ©ããããšãã§ããŸãã ããã©ã«ãã§ã¯ãæéééã®åäœã¯ãç§ãè¡šã s ãåãè¡šã m ã æéãè¡šãh ãæ¥ãè¡šãd ãé±ãè¡šã w ã幎ãè¡šãyã§ãã ç°ãªããŠãããã¯ãæ倧1ç§ãŸã§ç°ãªãã¬ãã«ã®ç²ŸåºŠããµããŒãããŸãã ééã¯ãElasticsearchããè¿ãããæ¥ä»ããŒã䜿çšããŠééã®å é ã§çœ²åãããŸãã ããšãã°ãæ¯æã®ééã®ããŒã«ãããã«ã¯ãæã®æåã®æ¥ã衚瀺ãããŸãã
ãã¹ãã°ã©ã ã æšæºãã¹ãã°ã©ã ã¯ãæ°å€ãã£ãŒã«ãã«åºã¥ããŠäœæãããŸãã ãã®ãã£ãŒã«ãã®æŽæ°ééãå®çŸ©ããŸãã ãã¹ãã°ã©ã ã«ç©ºã®ã¹ããŒã¹ãå«ããã«ã¯ã[ 空ã®ãã±ããã衚瀺ãã]ãã§ãã¯ããã¯ã¹ããªã³ã«ããŸãã
ç¯å² ã©ã³ã¯éèšã䜿çšãããšãæ°å€ãã£ãŒã«ãå€ã®ã©ã³ã¯ãå®çŸ©ã§ããŸãã [ ç¯å²ã®è¿œå ]ãã¯ãªãã¯ããŠãã©ã³ã¯ãšã³ããã€ã³ãã®ã»ãããè¿œå ããŸãã ã©ã³ã¯ãåé€ããã«ã¯ãèµ€ãèšå·ïŒxïŒãã¯ãªãã¯ããŸãã
æé äžæçãªã©ã³ã¯ã®éèšã¯ãæå®ãããæ¥ä»ç¯å²ã«ããå€ãå ±åããŸãã æ°åŠçãªæ¥ä»åŒã䜿çšããŠæ¥ä»ç¯å²ãæå®ã§ããŸãã [ ç¯å²ã®è¿œå ]ãã¯ãªãã¯ããŠãã©ã³ã¯ãšã³ããã€ã³ãã®ã»ãããè¿œå ããŸãã ã©ã³ã¯ãåé€ããã«ã¯ãèµ€ãèšå·ïŒxïŒãã¯ãªãã¯ããŸãã
IPv4ç¯å²ã IPv4ã©ã³ã¯éçŽã䜿çšãããšãIPv4ã¢ãã¬ã¹ã®ç¯å²ãå®çŸ©ã§ããŸãã [ ç¯å²ã®è¿œå ]ãã¯ãªãã¯ããŠãã©ã³ã¯ãšã³ããã€ã³ãã®ã»ãããè¿œå ããŸãã ã©ã³ã¯ãåé€ããã«ã¯ãèµ€ãèšå·ïŒxïŒãã¯ãªãã¯ããŸãã
èŠçŽã å€ãéèšãããšãç¹å®ã®ãã£ãŒã«ãã®äžäœãŸãã¯äžäœnèŠçŽ ãå®çŸ©ããŠãæ°éãŸãã¯ãŠãŒã¶ãŒã¡ããªãã¯ã§äžŠã¹æ¿ããŠè¡šç€ºã§ããŸãã
ãã£ã«ã¿ãŒã ããŒã¿ã®ãã£ã«ã¿ãŒã®ã»ãããå®çŸ©ã§ããŸãã ãã£ã«ã¿ãŒãã¯ãšãªæååãŸãã¯JSON圢åŒã§æå®ãããã[æ€çŽ¢ã®æ€çŽ¢]ã¿ãã§æå®ãããã§ããŸãã [ ãã£ã«ã¿ãŒã®è¿œå ]ãã¯ãªãã¯ããŠãå¥ã®ãã£ã«ã¿ãŒãè¿œå ããŸãã ã©ãã«ãã¿ã³ãã¯ãªãã¯ããŠãèŠèŠåã«è¡šç€ºããååãå ¥åã§ãã眲åãã£ãŒã«ããéããŸãã
éèŠãªèŠçŽã 笊å·ä»ãå€ã®å®éšçéèšã®çµæã衚瀺ããŸãã Sizeãã©ã¡ãŒã¿ãŒã®å€ã¯ããã®éçŽãè¿ãå ¥åã®æ°ã決å®ããŸãã
ãžãªããã·ã¥ã ãžãªããã·ã¥éèšã¯ãå°ç座æšã«åºã¥ããŠãã€ã³ãã衚瀺ããŸãã
ã»ã°ã¡ã³ãéçŽã®ã¿ã€ãã決å®ããããéçŽãµãã°ã«ãŒããå®çŸ©ããŠèŠèŠåãæ¹åã§ããŸãã [ +ãµããã±ããã®è¿œå ]ãã¯ãªãã¯ããŠãã¹ããããã»ã°ã¡ã³ããäœæãã[ è¡ã® åå²]ãŸãã¯[ ããŒãã«ã®åå²]ãéžæããŠãããã¿ã€ãã®ãªã¹ãããéèšãéžæããŸãã
éçŽã¿ã€ãã®å³åŽã«ããäžç¢å°ãŸãã¯äžç¢å°ã䜿çšããŠãéçŽåªå é äœãå€æŽã§ããŸãã
[ ã«ã¹ã¿ã ã©ãã«]ãã£ãŒã«ãã«è¡ãå ¥åããŠã眲åãå€æŽããŸãã
[ 詳现èšå® ]ãªã³ã¯ãã¯ãªãã¯ããŠãææšãŸãã¯ã»ã°ã¡ã³ãã®éèšã«é¢ãããã®ä»ã®ãªãã·ã§ã³ã衚瀺ã§ããŸãã
ãã¿ãŒã³ãé€å€ããŸãã ãã®ãã£ãŒã«ãã«ãã³ãã¬ãŒããæå®ããŠãçµæããé€å€ããŸãã
ãã¿ãŒã³ãå«ããã ãã®ãã£ãŒã«ãã«ãã³ãã¬ãŒããæå®ããŠãçµæã«å«ããŸãã
JSONå ¥åã 次ã®äŸã®ããã«ãç¹å®ã®ããããã£ãJSON圢åŒã§è¿œå ããŠç¹å®ã®éèšãšããŒãžã§ããããã¹ãããã¯ã¹ïŒ
{ "script" : "doc['grade'].value * 1.2" }
ã泚æ Elasticsearch 1.4.3以éã§ã¯ããã®æ©èœã«ã¯Groovyåçã¹ã¯ãªãããæå¹ã«ããå¿ èŠããããŸãã
ãããã®ãªãã·ã§ã³ã®å¯çšæ§ã¯ãéžæããéèšã«ãã£ãŠç°ãªããŸãã
[ ãªãã·ã§ã³ ]ã¿ããéžæããŠãè¡šã®æ¬¡ã®åŽé¢ãå€æŽããŸãã
ããŒãžããšã ãã®ãã£ãŒã«ãã¯ãããŒãã«ã®ããŒãžããŒã·ã§ã³ãå¶åŸ¡ããŸãã ããã©ã«ãã§ã¯ãå€ã¯1ããŒãžããã10è¡ã§ãã
æå¹/ç¡å¹ãã©ã°ã¯ã次ã®ã¢ã¯ã·ã§ã³ã«äœ¿çšã§ããŸãã
ãã¹ãŠã®ãã±ãã/ã¬ãã«ã®ã¡ããªãã¯ã衚瀺ããŸãã ãã®ããã¯ã¹ããªã³ã«ãããšãåã»ã°ã¡ã³ãéçŽã®äžéçµæã衚瀺ãããŸãã
éšåçãªè¡ã衚瀺ããŸãã çµæããªãå Žåã§ãããã®äœçœ®ã«ããŒã¯ãä»ããŠè¡ã衚瀺ããŸãã
ã泚æ ãããã®ãªãã·ã§ã³ãæå¹ã«ãããšãããã©ãŒãã³ã¹ã«æ·±å»ãªåœ±é¿ãäžããå¯èœæ§ããããŸãã
ããŒã¯ããŠã³ãŠã£ãžã§ãã
MarkdownãŠã£ãžã§ããã¯ãGitHubã§ãšã³ã³ãŒããããMarkdownããã¹ããåãå ¥ããããã¹ãå ¥åãã£ãŒã«ãã§ãã Kibanaã¯ããã®ãã£ãŒã«ãã«å ¥åããããã¹ããå®è¡ããçµæãããã·ã¥ââããŒãã«è¡šç€ºããŸãã [ ãã«ã ]ãªã³ã¯ãã¯ãªãã¯ããŠãGitHubã䜿çšããMarkdown ãã«ãããŒãžã«ç§»åã§ããŸã ã [ é©çš]ãã¯ãªãã¯ããŠå®è¡å¯èœããã¹ãããã¬ãã¥ãŒããã«ã«è¡šç€ºãããã[ ç Žæ£ ]ãã¯ãªãã¯ããŠåã®ããŒãžã§ã³ã«æ»ããŸãã
ã¡ãŒãã«æ³
ã¡ããªãã¯ã®èŠèŠåã§ã¯ãéžæããéèšããšã«1ã€ã®æ°å€ã衚瀺ãããŸãã
ã¡ããªãã¯éèšïŒ
ã«ãŠã³ã ã«ãŠã³ãéèšã¯ãéžæããã€ã³ããã¯ã¹ãã³ãã¬ãŒãå ã®èŠçŽ ã®æ£å³ã®ã«ãŠã³ããè¿ããŸãã
å¹³å ãã®éèšã¯ãæ°å€ãã£ãŒã«ãã®å¹³åå€ãè¿ããŸãã ããããããŠã³ãªã¹ããããã£ãŒã«ããéžæããŸãã
åèš æ°å€ãã£ãŒã«ãã®åèšéãè¿ããŸãã ããããããŠã³ãªã¹ããããã£ãŒã«ããéžæããŸãã
æå° æ°å€ãã£ãŒã«ãã§æå°å€ãè¿ããŸãã ããããããŠã³ãªã¹ããããã£ãŒã«ããéžæããŸãã
ããã¯ã¹ æ°å€ãã£ãŒã«ãã§æ倧å€ãè¿ããŸãã ããããããŠã³ãªã¹ããããã£ãŒã«ããéžæããŸãã
ãŠããŒã¯ã«ãŠã³ãã ã«ãŒãã£ãã«éçŽã¯ããã£ãŒã«ãå ã®äžæã®å€ã®æ°ãè¿ããŸãã ããããããŠã³ãªã¹ããããã£ãŒã«ããéžæããŸãã
æšæºåå·®ã äžè¬çµ±èšã®éèšã¯ãæ°å€ãã£ãŒã«ãã®ããŒã¿ã®æšæºåå·®ãè¿ããŸãã ããããããŠã³ãªã¹ããããã£ãŒã«ããéžæããŸãã
ããããããã ãããå€ã®éèšã¯ãããã¥ã¡ã³ãã®ç¹å¥ãªãã£ãŒã«ããã1ã€ä»¥äžã®ãããå€ãè¿ããŸãã ããããããŠã³ãªã¹ããããã£ãŒã«ããéžæããããã¥ã¡ã³ãã®äžŠã¹æ¿ãã®çš®é¡ãè¿ãããå€ã®æ°ãéžæããŸãã
ããŒã»ã³ã¿ã€ã«ã ããŒã»ã³ãéèšã¯ãæ°å€ãã£ãŒã«ãã®å€ãæå®ãããç¯å²ã«åå²ããŸãã ããããããŠã³ãªã¹ããããã£ãŒã«ããéžæãã ããŒã»ã³ã¿ã€ã«ãã£ãŒã«ãã§1ã€ä»¥äžã®é åãå®çŸ©ããŸãã [ X]ãã¯ãªãã¯ããŠãããŒã»ã³ããã£ãŒã«ããåé€ããŸãã [ è¿œå ]ãã¯ãªãã¯ããŠãããŒã»ã³ããŒãžãã£ãŒã«ããè¿œå ããŸãã
ããŒã»ã³ã¿ã€ã«ã©ã³ã¯ã ããŒã»ã³ããŒãžéçŽã¯ãéžæããæ°å€ãã£ãŒã«ãã®ããŒã»ã³ããŒãžã©ã³ãã³ã°ãè¿ããŸãã ããããããŠã³ãªã¹ããããã£ãŒã«ããéžæãã[ å€]ãã£ãŒã«ãã§ããŒã»ã³ãã©ã³ã¯ã®1ã€ä»¥äžã®å€ãå®çŸ©ããŸãã Xãã¯ãªãã¯ããŠãå€ãã£ãŒã«ããåé€ããŸãã [ è¿œå ]ãã¯ãªãã¯ããŠãå€ãã£ãŒã«ããè¿œå ããŸãã
芪ããŒã¿ãœãŒã¹ã®éçŽïŒ
芪æ å ±ãœãŒã¹ã®éèšããšã«ãéèšãèšç®ãããã¡ããªãã¯ã決å®ããå¿ èŠããããŸãã ããã¯ãæ¢åã®ã¡ããªãã¯ã®1ã€ã§ããæ°ããã¡ããªãã¯ã§ãããŸããŸããã ãããã®éèšã«æè³ããããšãã§ããŸãïŒããšãã°ã3次å°é¢æ°ãååŸããããïŒã
ããªããã£ãã 埮åéçŽã¯ãç¹å®ã®ã¡ããªãã¯ã®åŸ®åãã«ãŠã³ãããŸãã
环ç©åèšã 环ç©éèšã¯ã芪ãã¹ãã°ã©ã ã®ç¹å®ã®ã¡ããªãã¯ã®çŽ¯ç©åèšãéèšããŸãã
移åå¹³åã 移åå¹³åéèšã¯ãããŒã¿ã«ãŠã£ã³ããŠãæ¿å ¥ãããã®ãŠã£ã³ããŠã®å¹³åå€ãæžã蟌ã¿ãŸãã
ã·ãªã¢ã«å·®å é 次埮åã¯ãæç³»åã®å€ãå¥ã®æéãŸãã¯é 延ã§ããèªäœããæžç®ãããæ¹æ³ã§ãã
é¢é£ãœãŒã¹ã®éçŽïŒ
芪ãœãŒã¹ã®éçŽã®å Žåã®ããã«ãé¢é£ãããœãŒã¹ã®éçŽãèšç®ããã¡ããªãã¯ãæå®ããå¿ èŠããããŸãã ããã«ãã»ã°ã¡ã³ãã®éçŽãæäŸããå¿ èŠããããŸããããã«ãããéçŽãéå§ãããã»ã°ã¡ã³ãã決ãŸããŸãã
å¹³åãã±ãã ã»ã°ã¡ã³ãå¹³åã¯ãé¢é£ãããœãŒã¹ã®éçŽå ã®ç¹å®ã®ã¡ããªãã¯ã®å¹³åãèšç®ããŸãã
åèšãã±ãã é¢é£ãœãŒã¹ã®éçŽå ã®ç¹å®ã®ã¡ããªãã¯ã®å€ã®åèšãèšç®ããŸãã
æå°ãã±ãã é¢é£ãœãŒã¹ã®éçŽå ã®ç¹å®ã®ã¡ããªãã¯ã®æå°å€ãè¿ããŸãã
æ倧ãã±ãã é¢é£ãœãŒã¹ã®éçŽå ã®ç¹å®ã®ã¡ããªãã¯ã®æ倧å€ãè¿ããŸãã
[ +ã¡ããªãã¯ãè¿œå ]ãã¿ã³ãã¯ãªãã¯ããŠãéèšãäœæã§ããŸãã
[ ã«ã¹ã¿ã ã©ãã«]ãã£ãŒã«ãã«æååãå ¥åããŠã眲åãå€æŽããŸãã
[ 詳现 ]ãªã³ã¯ãã¯ãªãã¯ããŠãããã«ãªãã·ã§ã³ã衚瀺ã§ããŸãã
JSONå ¥åã 次ã®äŸã®ããã«ãç¹å®ã®ããããã£ãJSON圢åŒã§è¿œå ããŠç¹å®ã®éèšãšããŒãžã§ããããã¹ãããã¯ã¹ïŒ
{ "script" : "doc['grade'].value * 1.2" }
ã泚æ Elasticsearch 1.4.3以éã§ã¯ããã®æ©èœã«ã¯Groovyåçã¹ã¯ãªãããæå¹ã«ããå¿ èŠããããŸãã
ãããã®ãªãã·ã§ã³ã®å¯çšæ§ã¯ãéžæããéèšã«ãã£ãŠç°ãªããŸãã
[ ãªãã·ã§ã³ ]ã¿ããã¯ãªãã¯ããŠããã©ã³ããµã€ãºã¹ã©ã€ããŒã衚瀺ããŸãã
第äžéšã