2015-03-01ãã1ã¶æéã®è¨äºä¸è¦§
ããéçãéå¹ãã¾ãããã¤ã¯ã«ãã¹ã¯ãã¼ãºã延é·æ¦ã§åå©ããã¨ããå¥è·¡ãç®ã®å½ããã«ããã®ã§æ¨æ¥ãããã£ã¨ãã¤ã¤ãã¦ãã¾ãã ä»åã¯Solr4.1ããSolr5ã«ãã¼ã¿ç§»è¡ãããéã«èªåãå°ãã¯ã¾ã£ãç¹ãåèã¨ãã¦æ®ãã¦ããã¾ãã pint,sintã¯ä½¿ããªã â¦
ãbindFromRequest() åããªããã ã¨ä½ãã¢ãã£ã½ãã¦æ¤ç´¢ããããã£ã¦ãã¾ã£ãã®ã§ããã ãbindFromRequest() not workãã ã¨ä½ãã»ã¼ããªæ°ããã¦æ¤ç´¢ã§ãã¦ãç¡äºè§£æ±ºãã¾ããã Play FrameWorkã«ã¯formã¨ãã便å©æ©è½ããã£ã¦ã public class User { puâ¦
Solrã¯5.0ããã¹ã¿ã³ãã¢ãã³ãªãµã¼ãã¼ã¢ããªã±ã¼ã·ã§ã³ã«ãªãã¾ããããTomcatã®ä¸ã§åããããæã®ããã«Tomcat7 + Solr4.10ã®ç°å¢æ§ç¯æé ãæ®ãã¦ããã¾ããä»åã¯ã½ã¼ã¹ãããã«ããã¾ãã Solr5.0ã®ç°å¢æ§ç¯ã¯ãã¡ãï¼ CentOS7ã«Solr5.0ãå ¥ããæé â¦
CentOS7ã§ã¯MySQLã®ä»£ããã«MariaDBãæ¡ç¨ããã¦ãããããªã®ã§ãyumã§ã®ã¤ã³ã¹ãã¼ã«æé ãæ®ãã¦ããã¾ãã ã¤ã³ã¹ãã¼ã«ãããµã¼ãã¹ç»é²ã¾ã§ yum install mariadb mariadb-server vi /etc/my.cnf [mysqld] character-set-server=utf8 firewall-cmd --perâ¦
ãããªãããããªãäºã§1æéãããã¯ã¾ã£ã¦ã¾ããã CentOS7ã§éçºç°å¢ãä½ã£ã¦ãã¦phpMyAdminãå¤é¨ããã¢ã¯ã»ã¹å¯è½ã«ãããã¨æã/etc/httpd/conf.d/phpMyAdmin.confã Order Deny,Allow #Deny from All Allow from All ã¨å¤æ´ãã¦apacheãåèµ·åããã®â¦
ã¦ãªçåµé¢ç½ãã§ãããã CentOS7ã«Solr5.0ãå ¥ããã®ã§ããã®æã®æé ãæ®ãã¦ããã¾ãã ã¾ã注æç¹ã¨ãã¦ãSolr5.0ã§ã¯Javaã¯1.7u55以ä¸ã§ãªãã¨æ£å¸¸ã«åãã¾ãããæ´ã«solr.xmlã®å½¢å¼ãå¤ãã£ã¦ãããSolr4.3以åã®ãã®ã§ã¯åããªããªã£ã¦ãããã¨ã«ãâ¦
諸äºæ ã§ElasticSearchã®äºã°ã£ããæ¸ãã¦ã¾ãããSolrã®æ¹ã好ãã§ãã ElasticSearchã®ã¤ã³ãã¯ã·ã³ã°ãé«éåããããã«ãã£ãäºãæ®ãã¦ããã¾ãã åºæ¬çã«ã¯âã«æ¸ãã¦ãããã¨ã°ããã§ãã Performance Considerations for Elasticsearch Indexing | Eâ¦
ElasticSearchã£ã¦æ¥æ¬èªã®æ å ±å°ãªãã¦è¾ãã§ãã ä»åã¯mlockall:trueã®è¨å®ãå¹ããªãã£ãæã®ãã§ãã¯é ç®ãæ®ãã¦ããã¾ãã mlockall:trueã¨ã¯ ElasticSearchã¯å ¬å¼ã§ãèµ·åæã«ã¡ã¢ãªã確ä¿ããã¹ã¯ããããªãããã«ãããã¨ããè¨å®ãæ¨å¥¨ããã¦ãã¾â¦
PlayFrameWorkã®ããã¸ã§ã¯ããeclipseã§éçºããããã®ç°å¢æ§ç¯æé ãæ®ãã¦ããã¾ãã activatorã«ãªã£ã¦ããã¯é常ã«åç´ã§ãWindowsã§ãMacã§ã大ãã¦å¤ããã¾ããã Windowsã®å ´å https://www.playframework.com/downloadããactivatorããã¦ã³ãã¼ãâ¦
æ²æåºæå çã®æ¼«ç»ã好ããªãã§ããããã®ä¸ã§ãç¹ã«ããã«ã·ãªã³ã©ã³ããã好ãã§ãã ã¹ãã¼ãªã¼ãè¯ãåºæ¥ã¦ãã¦ç°¡åã«è¨ãã¨å¥³ã®åãã²ããåãã¦ä¸çãæããã話ãªãã§ããããã®ä»ã«ãèªãã¨ã²ããåããã¨ã«å¯¾ããèºèºããç¡ããªã£ã¦ã飲ã¿éãã次â¦
åã«ãæ¸ããã®ã§ãããElasticSearchã¯ã¾ã æ¥æ¬èªã®æ å ±ãå°ãªããã¯ã¾ã£ãæã«ããé¢åã¨ããã®ãç§ã®ææã§ããElasticSearchã使ã£ã¦1000ä¸ä»¶ãããã®ãã¼ã¿ã®éè¨ããããã¨è©¦ã¿ã¦ããã¤ãå°ã£ãç¹ããã£ãã®ã§ãæ¥æ¬èªã®æ å ±ãç¡ãããã ã£ãç©ã ãåâ¦
CentOS7ç³»ã¸ã®ElasticSearchå°å ¥æé ãæ®ãã¦ããã¾ãã CentOS7ç³»ã«ãªã£ã¦iptablesã¨ãç¡ããªã£ã¦ã¦ããµãã®ãããä¸å¦çã ã¨ç¥ã£ãæãããã³ã£ãããã¾ããã ã¤ã³ã¹ãã¼ã«ããsystemctlç»é²ã¾ã§ yum install java-1.7.0-openjdk* yum install wget wget â¦
ãªã¼ãã³ã½ã¼ã¹ã®å ¨ææ¤ç´¢ã¨ã³ã¸ã³ã¨ããã°Apache Solrã ã¨ãã£ã¨æã£ã¦ããã®ã§ãããä»ã«ãElasticSearchã¨ãããã®ããã£ã¦æè¿ã§ã¯ãã¡ããæµè¡ã£ã¦ããããã§ãã 調ã¹ã¦ã¿ããçµæ§åããæµè¡ã£ã¦ããããã§ä»æ´ç¥ã£ãã®ã¯å°ãæ¥ããããã®ã§ããããã«â¦
ããã³ãéçºã®æ¥½ãããå®éåããã¨ãã«ãã¼ãã¤ãã¼ç¬¬5話ãããã¯ããã¾ãããã¯ãã¹ãã©ã¦ã¶å¯¾å¿ã¨ãªãã¨é端ã«ãã«ãã¼ãã¤ãã¼ç¬¬1話ãããã®æ¥½ããã«ãªã£ã¦ãã¾ãã¨ããã®ã¯çããããåç¥ã®éãã§ãã ãããã¹ãããã¯ã¹ã®ãã©ã¼ã«ã¹æã«å ¨é¸æç¶æ ã«â¦
ããã°ã©ãã³ã°ãå§ãã¦æ°å¹´ãã¡ãæãã£ããã¨ãå¾ã ã«å¿ãã¤ã¤ããã¾ãã Qitaã§æ®ããããªã¨ãæã£ããã§ãããQitaã§ã¯ãµãã®ããããã«ãã¼ãã¤ãã¼ããã«ã·ãªã³ã©ã³ããªã©ã®ã¹ãããã§ããªãã®ã§ããã°ã«ãã¾ããã ã¸ã éããèªçãã·ãã·ããç¶ç¶ã§â¦