ããã§è¿°ã¹ãããã«ã Sphinx 2.0.1ã¯æè¿ãªãªãŒã¹ãããŸããã ããããæ¥ãã§ãªãªãŒã¹ãããŸããã ãå®å šã«äºæ³å€ã«ãïŒã»ãŒã»ãã·ã§ã³ãŸãã¯æ°å¹Žã®ããã«ïŒãããã«ã åå¿è åãã®æ¬ãåºçãããæ°ããããŒãžã§ã³ã ãã説æãããŸããã ããã©ã³ã¯ã«ã€ããŠããšããæ¬ã¯ãŸã 颚å€ããã§ãã®ã§ãããã«ããŒãžã§ã³ãå ¬éããªããã°ãªããŸããã§ããã 1ã2ãæéããªãªãŒã¹ã®æºåãããŠããã®ã¯è¯ãããšã§ãããã°ãä¿®æ£ããæ©èœãããŸãå£ããŸããã§ããã ããŒãã§ã¯ãææ°ããŒãžã§ã³2.0.1ã®ããããçš®é¡ã®é©æ°ãšæ¬¡ã®ããŒãžã§ã³ã®èšç»ã«ã€ããŠèª¬æããŸããã¿ãã¯ã«ãåç §ããŠãã ããã
æ°æ©èœ
37åã®æ°æ©èœã®äžã§æã泚ç®ã«å€ãã5ã€ïŒç§ã®æèŠïŒã¯ããã®ããã«ãªããŸããã
- ã€ã³ããã¯ã¹äœæäžã®æãšæ®µèœã®å¢çã®æ€åº;æ€çŽ¢äžã®SENTENCEãPARAGRAPHæŒç®å;
- ã€ã³ããã¯ã¹äœæäžã®ããã¥ã¡ã³ãå ã®éå±€ïŒïŒïŒãŸãŒã³ã®ãµããŒããæ€çŽ¢æã®ZONEæŒç®åã
- éšåæååãæ€çŽ¢ããæ©èœã«ãããã€ã³ããã¯ã¹äœæãå€§å¹ ã«é«éåããæ°ããã¿ã€ãã®èŸæžïŒã€ã³ããã¯ã¹äœæã¯5ã10åéããã€ã³ããã¯ã¹ã¯å°ãããªããŸãïŒã
- æååå±æ§ã®ãµããŒãã®æ¹åïŒORDER BYãGROUP BYãç §åã
- æ¹åãããSphinxQLæ§æïŒéæ³ãåãé€ããSQL'92ã«é²ã¿ãŸãã
æãšæ®µèœã®çŽ¢åŒä»ãã«ã€ããŠïŒindex_sp = 1ãSENTENCEãPARAGRAPHïŒ
察å¿ããããã¹ãåäœã«å¶éãããæ€çŽ¢ã«å¿ èŠïŒïŒmom SENTENCE soap SENTENCEãã¬ãŒã ïŒãïŒåç¶PARAGRAPH deadïŒã ã¯ãšãªèšèªã«ããã€ãã®æŒç®åãè¿œå ãããŸããã æŒç®åã®åŒæ°ïŒSENTENCEãPARAGRAPHã®å·Šå³ïŒã¯ã次ã®3ã€ã®ããããã§ããåçŽãªããŒã¯ãŒãã ãã¬ãŒãºïŒã颚ãšå ±ã«å»ãã¬ãæ埪ç°ïŒ; ãŸãã¯ãªãã¬ãŒã¿ãŒèªèº«ïŒmom SENTENCE soap SENTENCEãã¬ãŒã ïŒã
æè¡çãªçç±ãããä»»æã®éšååŒãããã«çœ®ãã®ã¯ããªãéèŠã§ãã ã¯ãšãªãããã£ãŒã®æ§é ã«èå³ããã人ã®ããã«ïŒã¯ãšãªèšç®ããªãŒã®ãããã®æŒç®åã¯ããµãããªãŒããããŒã¯ãŒãã®ã¹ããªãŒã ãåãåãããã®ã¹ããªãŒã ããã£ã«ã¿ãªã³ã°ããŸãã ãããã£ãŠã1ã€ã®æãŸãã¯æ®µèœã®åºçŸããã£ã«ã¿ãªã³ã°ããåŸãäžè¬çãªå Žåããã£ã«ã¿ãªã³ã°ãããåºçŸããŸã äžèŽãããã©ãããèªä¿¡ãæã£ãŠèšãããšã¯ã§ããŸããã äœããã®æ¹æ³ã§å床確èªããå¿ èŠããããŸãããããã¯æè¡çã«éåžžã«å°é£ã§ãïŒçªç¶èª°ããäœæ¥ããããéä¿¡ããããã«çµŠæãåžæããå ŽåïŒã ãããã£ãŠããšã³ããªãã¢ãããã¯ã§ããå¿ èŠããããŸãïŒäžèŽããããŸã£ããååšããªããããã£ã«ã¿ãŒãåé€ãããŸãïŒã ãã®ãããåèªãŸãã¯ãã¬ãŒãºã®ããããã§ãã
æãšæ®µèœã®å¢çãåºå¥ããã«ã¯ãã€ã³ããã¯ã¹ãäœæãããšãã«ãããããæ€åºããŠã€ã³ããã¯ã¹ã«ä¿åããå¿ èŠããããŸãã ãã®ããããã£ã¬ã¯ãã£ãindex_sp = 1ãä»å ãããŸãã
段èœã®å¢çã¯ãã³ãŒãã§èŠå®ãããŠãããããã¯ïŒãããã¯ã¬ãã«ïŒHTMLã¿ã°ã®æ°ãšèŠãªãããŸãã ãããã£ãŠã段èœã«ã€ã³ããã¯ã¹ãä»ããã«ã¯ãHTMLã¹ããªãããŒïŒhtml_strip = 1ïŒãtkãæå¹ã«ããå¿ èŠããããŸãã HTMLã¯ããã§åŠçãããŸãã
æã®å¢çã¯ããã¹ãã«åºã¥ããŠæ€åºãããŸã;ãããã®å Žåãã¹ããªãããŒã¯ãªãã·ã§ã³ã§ãã åœå¢ã¯åžžã«çåç¹ãšæå笊ãšèŠãªãããŸãããããã€ãã®äŸå€ã¯ãããŸãã äŸå€ã¯ãUSAãŸãã¯ããã«ããGoldman Sachs Srlãªã©ã®ç¥èªãJohn D. Doeãªã©ã®ååãªã©ã«ãã£ãŠåŠçãããŸãã ãã¡ãããééã£ãŠãããããããŸããããã£ãŒãããã¯ãèç©ããã«ã€ããŠãããããçš®é¡ã®äŸå€ãè¿œå ããŸãã ããããå šäœãšããŠããã¹ãã¯ããŸãæ©èœããŸããã
ãŸãŒã³ã®ã€ã³ããã¯ã¹ä»ãã«ã€ããŠ
人ã ã¯ãããçš®ã®å éšæ§é ãæã€ææžã®äžã«ããã¹ããå ¥ããããšããŸãããããã¯ãã£ãŒã«ãã®åçŽãªåºå®ãªã¹ãã«åãŸããŸããã å žåçãªäŸã¯åãªãæ¬ã§ããç« ãã»ã¯ã·ã§ã³ããµãã»ã¯ã·ã§ã³ãã¢ããªã±ãŒã·ã§ã³ãè泚ãªã©ã§ãã
ãã®ããã2.0.1以éããã®ãããªä»»æã®æ§é ã®ãµããŒããïŒéåžžã®ãã£ãŒã«ãå ã§ïŒç»å ŽããŸããã ããã¯index_zonesãã£ã¬ã¯ãã£ãã«å«ãŸããŠãããHTMLã¹ããªãããŒã䜿çšãããããæå¹ã«ããå¿ èŠããããŸãã ããã¥ã¡ã³ãã®ã€ã³ããã¯ã¹ãäœæãããšããéžæããã¿ã°ã§ããŒã¯ããããã¹ãŠã®ãŸãŒã³ã®å¢çãä¿åãããŸããããšãã°ãåh1ã®éå§ãšçµäºããŸãã¯ä»é²ããããŸãã ããããæ€çŽ¢ããå Žåãæ€çŽ¢ããŸãŒã³ã«å¶éã§ããŸãïŒïŒZONEïŒh1 hello worldïŒã
ãŸãŒã³ã¯ä»»æã®æ°ã«ããããšãã§ããŸãã ãŸãŒã³ã¯äºãã«ä»»æã«ãã¹ãã§ããŸãã ã¿ã°ã®é·ãã®ã¿ãå¶éãããŠãããçŽ120ãã€ãã§ãã è¡å ã®ãã¹ãŠã®ã¿ã°ã«ã€ã³ããã¯ã¹ãä»ããããããã§ã¯ãããŸãããããã£ã¬ã¯ãã£ãã§æ瀺çã«ã®ã¿æå®ãããŸãã æ£ç¢ºãªã¿ã°ãŸãã¯ãã¬ãã£ãã¯ã¹ãã¹ã¯ã®ãããããæå®ã§ããŸããindex_zones= h *ãchapterãsectionãappendixã æŒç®åãæ€çŽ¢ãããšãããã£ãŒã«ãã«äŒŒãããã€ãã®ãŸãŒã³ãæå®ã§ããŸãïŒïŒZONEïŒïŒh1ãappendixïŒhello worldïŒã ãããã®ååã«å¶éã¯ãããŸããã ãããã®ãŸãŒã³ã§HTMLã«ã€ã³ããã¯ã¹ãä»ããããšãã§ããŸããXMLã«ããããšãã§ããŸãã XMLèŠä»¶ãšã¯ç°ãªãããŸãŒã³ãéè€ãããããšã¯æè¡çã«ã¯åé¡ãããŸããïŒ1ã€2ã€3ã€4ã€5ã€6ã€ïŒã ãã ããåãªãŒãã³ãŸãŒã³ãéããããšã¯æ確ã«å¿ èŠã§ãã
æ°ããèŸæžã«ã€ããŠ
éçºã®10幎ç®ã«ãã€ãã«ïŒãã©ã ããŒã«ïŒ...ããŒã¯ãŒãèªäœãä¿åãããèŸæžãå°ç¡ãã«ããŸããã 以åã¯ãããã·ã¥ã®ã¿ãä¿åãããŠããŸããã å®éãæ€çŽ¢ã«ã¯ãåèªèªäœã¯ãŸã å¿ èŠãããŸãããããã·ã¥ã®çœ®æã¯ããŸãæ©èœããŸãã ãã ããå€ãã¿ã€ãã®èŸæžïŒdict = crcïŒã§ã¯ãéšåæååãæ€çŽ¢ããããã«ãããããã¹ãŠã®éšåæååã«äºåã«ã€ã³ããã¯ã¹ãä»ããå¿ èŠããããŸããïŒããã·ã¥ã«ããéšåæååã®æ€çŽ¢ã¯é¢åãªã®ã§ïŒã ãšããã§ãå¯èœæ§ã®ãããã¹ãŠã®éšåæååã®ãã®ãããªäºåã€ã³ããã¯ã¹ä»ãã¯ãæ€çŽ¢æã«å¯èœãªéãè¿ éã«æ©èœããŸãã ãã ããã€ã³ããã¯ã¹äœææéãšã€ã³ããã¯ã¹ã®ãµã€ãºã¯å€§ããäœäžãããéåžžã®ãã€ã³ããã¯ã¹äœæãããæ倧5ã10åé ããªããããã«å¿ããŠã€ã³ããã¯ã¹ãèšãã¿ãŸãã ã€ã³ããã¯ã¹ã1ã3 GBã®å°ããªã€ã³ããã¯ã¹ã®å ŽåïŒäžçã®ãã¹ãŠã®ãã¬ã³ããããå°ãå°ãªãã€ã³ããã¯ã¹ãäœæããã«ã¯ååã ãšæãããŸãïŒãããã¯ãŸã èããããŸãã 100 GB以äžã®ã€ã³ããã¯ã¹ã®å Žåãããã¹ãã¯ãããããŸããã ãã®ãããç¹å®ã®ã¯ã©ã€ã¢ã³ããšã®ããŽã·ãšãŒã·ã§ã³ã§ã¯ããã®ãããªã³ã¬ã¯ã·ã§ã³ã§ã¯éšåæååã®æ€çŽ¢ãã»ãšãã©å¿ èŠãªãããšãå€æããŸããã ããŠãã©ããžè¡ãããæ°ããèŸæžãæ·»ä»ããŸããã
ã€ã³ããã¯ã¹èšå®ã®dict = keywordãã£ã¬ã¯ãã£ãã«å«ãŸããŠããŸãã éåžžã®ïŒïŒïŒã€ã³ããã¯ã¹äœæãšæ¯èŒãããšãçŽ1.3åé ããªããŸãïŒå éšãã¹ãYMMVã§ã¯ãããããã¹ãŠã®ããšïŒã ãããã£ãŠãæ¥é èŸãŸãã¯ããã«æªãå Žåã¯æ¿å ¥èšå·ã䜿çšããã€ã³ããã¯ã¹äœæãšæ¯èŒããŠã3å以äžã®éãã§é£è¡ããã¹ããŒã¹ãç¯çŽããŸãã
ã¡ãªã¿ã«ãæãããªçç±ã«ãããããã©ã«ãã§ã¡ã¢ãªã«å®å šã«ãã£ãã·ã¥ãããèŸæžïŒ.spiãã¡ã€ã«ïŒã¯ããªãå°ãªããªããŸãã ãããã£ãŠãã¡ã¢ãªã®æ¶è²»ãå°ãªããªããŸãã
ã€ã³ããã¯ã¹äœæé床ã®ãã®ãããªå°çã®ãããªå éãšãã£ã¹ã¯/ã¡ã¢ãªã®ç¯çŽã®ããã«ã¯ããã¡ãããäœããæ¯æããªããã°ãªããŸããã çè«çã«ã¯ãæ€çŽ¢é床ãäœäžããã¯ãã§ãã ããã¯ãdict =ããŒã¯ãŒãã䜿çšãããšãã¢ã¹ã¿ãªã¹ã¯ä»ãã®åããŒã¯ãŒãããæå®ããããã¹ã¯ã䜿çšããŠèŸæžå ã§èŠã€ãã£ããã¹ãŠã®åèªã®å€§ãã倪ãORã«èªåçã«å±éãããããã§ãã èŠæ±ã¯ããè€éã§ãããããã»ããµãšãã£ã¹ã¯ã®æéãããå€ãæ¶è²»ãããŸãã Vasyaãã¹ã¯ãäžèŽããåèªãå€ãã»ã©ãVasyaã®æ€çŽ¢ãé·ããªããŸãã ãã ããå®éã«ã¯ãæ°ããèŸæžãããéãåºãŠããããšãå€æããå ŽåããããŸãã ããã¯ãå€ãã€ã³ããã¯ã¹ãééããªãã¡ã¢ãªã«é 眮ãããŠãããããã¹ãŠã®äººããã£ãããšiowaitã«åº§ã£ãŠãã£ã¹ã¯ãèªã¿åããããããã¬ã¿ã¬ã¿é³ãç«ãŠããã£ãã·ã¥ãããŒãžããŠãããsyscall outhouseãçµäºããæ°ããã€ã³ããã¯ã¹ãé 眮ãããïŒãŸãã¯å°ãªããšããã£ãã·ã¥ã®æ¹ãã¯ããã«åªããŠããŸãïŒãæ°ãããäœéãã¡ã¢ãªãªã¯ãšã¹ãã¯ãå€ããé«éããã£ã¹ã¯ãªã¯ãšã¹ããããé«éã§ãã 10åã¯1å10åãšããããã1åè¯ãïŒ
ã¡ãªã¿ã«ãæ¡åŒµã®çšåºŠã¯ãåå¥ã®æ°ããèšå®expansion_limitã«ãã£ãŠå¶åŸ¡ãããŸãã ããã©ã«ãã§ã¯ãçŸåšã¯0ã§ãã å¶éã¯ãããŸããã A *ã®ãããªãªã¯ãšã¹ãã100äžèªã®ORmsã«çœ®ãæãããããŒã¢ã³ã殺ããŠæ»ã«ãããªãå Žåã¯ã劥åœãªexpansion_limitãèšå®ããããšããå§ãããŸãã æ¡åŒµã«å¶éãããå Žåãæãäžè¬çãªåèªã®äžäœNã䜿çšãããŸãã
æååå±æ§ã«ã€ããŠ
ãã§ã«ç·ããããããããšã¯ã»ãšãã©é¢ä¿ãããŸããã§ããã æååå±æ§ã«ORDER BYããã³GROUP BYã®ãµããŒããè¿œå ããŸããã ïŒWHEREãæ·»ä»ããããšã¯æ®ã£ãŠããŸãããåèªæ€çŽ¢ãããå Žåãããã¯æãç·æ¥ã®å¿ èŠæ§ã§ã¯ãããŸãããïŒSphinxAPIã«ãããœãŒããšã°ã«ãŒãåãæ©èœããŸãã
æååã¯æ°åã§ã¯ãªããèšèªã倧æåãšå°æåã®åºå¥ã®èŠä»¶ã«å¿ããŠç°ãªãããã ç §åé åºãæ·»ä»ããå¿ èŠããããŸããã æã§ã¯ãç°ãªãæååæ¯èŒé¢æ°ã äžé£ã®ç §åãæåã§å®è£ ãããããççŽã§æ zyã§ã玳士ã®æå°éã®ã»ãããäœæããŸãïŒbinaryãutf8_general_ciãlibc_ciãlibc_csã æåã®2ã€ã¯ãæååããã€ãåäœã§ããŸãã¯UTF-8ã®ãäžè¬çãªãïŒå€§æåãšå°æåãåºå¥ããªãïŒèŠåã«åŸã£ãŠæ¯èŒããŸãã 2çªç®ã®2ã€ã¯ãlibcãšãã±ãŒã«ãç®èçã«äœ¿çšããŸãã ã¡ãªã¿ã«ãããŒã¢ã³ã®èµ·åæã«LOCALE = ru_RU.utf-8ã1xã§æ©èœãããããã«äœ¿çšã§ãããã±ãŒã«ã2xã§ç¹ã«ã€ã³ã¹ããŒã«ãããªãããšãå€ãããšã«é©ããã ããŠã collatââion_libc_localeãã£ã¬ã¯ãã£ããã¢ã¿ããããŠãããŒã¢ã³ã®èµ·åæã«ãã±ãŒã«ãéžæããlocale -aã³ãã³ããšä»ã®ãããŸããªapt-getãyumã調ã¹ãå¿ èŠããããŸããã
SphinxQLã«ã€ããŠ
以åã®ããŒãžã§ã³ã§ã¯ãSphinxQLã¯æ¬è³ªçã«ãå€ããæ€çŽ¢ãšã³ãžã³ã®äžã«ããéåžžã«è»œéãªã©ãããŒã§ãããSphinxAPIããã¢ã¯ã»ã¹ã§ããŸããã ããã«ããããã¹ãŠã®çš®é¡ã®æ®ççŸè±¡ãååšããŸãããåidãéã¿ã¯å¿ ãçµæã»ããã«è¿œå ãããŸããã ã°ã«ãŒãåããžãã¯ã«ã©ã ãè¿œå ããããšã@groupã count ; SELECTã§æ瀺çã«èŠæ±ãããå±æ§ã®é åºã«éåããå¯èœæ§ããããŸãïŒã¯ãšãªã®å±æ§ã¯ã€ã³ããã¯ã¹ã®å±æ§ã«çœ®ãæããããŸããïŒã
ãã®ãããªçŸè±¡ã¯ãSQL'92æšæºããã³åžžèãšççŸãããããã¯ãªãŒã³ã«ããããšã決å®ãããŸããã èŠæ±ã¯åããŸãŸã§ãããå¿çã¯ç°ãªããŸããè¿œå ã®ããžãã¯ã«ã©ã ã¯è¿œå ãããããã¹ãŠã®çš®é¡ã®WEIGHTïŒïŒããã³COUNTïŒ*ïŒãæ瀺çã«èŠæ±ããå¿ èŠããããŸãã ãŸããå±æ§ã®é åºã¯èŠæ±ã©ããã«è¿ãããã€ã³ããã¯ã¹ã®æ§ç¯æã«ã€ã³ãã¯ãµãŒã«ãã£ãŠéžæãããŸããã
ãããïŒ çªç¶ïŒtmïŒåäœãå€æŽããããæ¢åã®ã¢ããªã±ãŒã·ã§ã³ãç Žå£ãããããããšã¯ã§ããŸãããã¢ããªã±ãŒã·ã§ã³ãæŽæ°ããïŒãããŠçªç¶ãã¹ãŠãå€æŽããŠç Žå£ããïŒæ©äŒãäžããå¿ èŠããããŸãã ããã«ãããããã©ã«ãã§1ïŒéæ³ã®åã§ãå€ãæ¹æ³ã§ãå¿çãäžããïŒã§ããç¥ç§çãªæ什compat_sphinxql_magicsãç»å ŽããŸããããæããæªæ¥ã§ã¯åžžã«0ã«ãªãã¯ãã§ãïŒANSI SQLãéºèŽããããã«ãæ°ããæ¹æ³ã§ãå¿çãäžããïŒã
ããŒã¢ã³ã¯ãèµ·åæã«èªèº«ã®ããã©ã«ãå€ã«é¢ããèŠåã宣èªããŸãã ããã¯ãé²æ©ãšæ©èª¿ãåãããå¿ èŠæ§ã象城ããŠããããã®ããã«èããããŠããŸãã
å€æŽã®ãªã¹ãïŒéåžžã«å°ããïŒã¯ã SphinxQLã®æŽæ°ã«é¢ããç¹å¥ãªã»ã¯ã·ã§ã³ã®ããã¥ã¡ã³ãã«ãããŸããååãšããŠããã¹ãŠãéåžžã«çŽæçã§ããå¿ èŠããããŸãã ãããã£ãŠãç§ãã¡ã®ç®æšã¯å€ãè¯ãSQLã§ãã SELECT * FROM ...ã以åã«èšè¿°ããããšããã§ãä»åºŠã¯SELECT *ãWEIGHTïŒïŒ `weight` FROM ...ãèšè¿°ããŸããã以åã¯GROUP BYã®ã¿ãèšè¿°ããŠããŸããããCOUNTïŒ*ïŒmyaliasãæ瀺çã«èšè¿°ããã¢ããªã±ãŒã·ã§ã³ãæŽæ°ããŠmyaliasåã«ç§»åããŸããªã©
æ°ããããã±ãŒãž
æã§ã³ã³ãã€ã«ããã®ã¯éå±ãªã®ã§ãããŸããŸãªãã©ãããã©ãŒã çšã®å ¬åŒãã€ããªããã±ãŒãžãåéããããšãåŸã ã«åŠç¿ããŠããŸãã ãªãªãŒã¹2.0.1ã¯ãRH / CentosãWin32ãMacOSã§æ¢ã«ã³ã³ãã€ã«ãããŠããŸãã èšç»ãšãã¹ãïŒä»åŸ1ã2é±éã«ãªãããšãæã¿ãŸãïŒã«ã¯ããŸã UbuntuãWin64ã®ããã±ãŒãžããããŸãã ããã«ããã¡ã³ã¿ãžãŒã¯å€±æããå ¬åŒãã€ããªãå¿ èŠãªèª¿æ»ãå®æœããå¿ èŠããããŸãã
ããããçš®é¡ã®ç°ãªãæ°æ©èœ
ããšãŒããããé§ãæããã圢åŒã§ãä»ã®å€ãã®èå³æ·±ãå¯èœæ§ã®ããäœåã調ã¹ãŸãã
ãµãŒããŒäžã«ãã倧ããªããã¥ã¡ã³ããããã°ããã¹ãããããæ§ç¯ããå¿ èŠãããå Žåã®ããã«ãã¹ããããã®ããã±ãŒãžã®ãã«ãã¹ã¬ããããã³åæ£æ§ç¯ãè¡ããŸããã ããã¯ããµãŒããŒäžã®dist_threadsãã¹ããããã®ãªã¯ãšã¹ãå ã®load_filesã®ååšã«å«ãŸããŠããããããŸã§ã®ãšããAPIãä»ããŠã®ã¿æ©èœããŸãã
UDFããµããŒãããŸããã Cã§é¢æ°ãèšè¿°ãããã®å Žã§ãµãŒããŒã«æ¥ç¶ããåŒãªãŒããŒã§äœ¿çšã§ããŸãïŒSELECTãåç §ïŒã åã·ã¹ãã ã¯ç°ãªããŸãããã€ã³ã¿ãŒãã§ã€ã¹ã¯MySQLã«éåžžã«äŒŒãŠããŸãã Sphinxã§MySQL UDFãåæ§ç¯ããã®ã¯éåžžã«ç°¡åãªäœæ¥ã§ãã
æ°ãããã°åœ¢åŒquery_log_format = sphinxqlãäœæããŸããã ãã¹ãŠã®æ€çŽ¢ã¯ãšãªïŒAPIãšQLã®äž¡æ¹ïŒã¯ãæ£ããSphinxQLæ§æã«å€æãããèšè¿°ãèšè¿°ãããŸãã éåžžã®ãã°ãšã¯ç°ãªãããã£ã«ã¿ãŒãSELECTåŒããšã©ãŒãªã©ãèšé²ããŸãã ãããã°ãšãããã¡ã€ãªã³ã°ã«äŸ¿å©ã§ãã ãã¹ãŠã®éæ€çŽ¢ã¯ãšãªïŒã¹ãããããªã©ïŒã®ãã®ã³ã°ãå®äºããŸãã
blend_modeãã£ã¬ã¯ãã£ããäœæããŠããã¬ã³ããããæåãå«ãŸããã·ãŒã±ã³ã¹ã«ããã€ãã®ç°ãªãæ¹æ³ã§ã€ã³ããã¯ã¹ãä»ããããããã«ããŸããã ïŒããšãã°ããåèªã@ sphinxsearchïŒã«ã€ããŠã@ sphinxsearchã®3ã€ã®ããªã¢ã³ããã¹ãŠãsphinxsearchïŒã@ sphinxsearchïŒã®ã€ã³ããã¯ã¹ãäœæããæåŸã®ãã®ã ãã§ã¯ãããŸãããïŒ
圌ãã¯ãã¹ã¬ããã䜿çšããã¢ãŒãã§ãæªéã髪ã®æ¯ã§èªåèªèº«ãæã¡äžããããã«ããŠã©ããããã°ãäœæããŸããã ç¡å¹ã«ããããšãã§ããŸãã
id32ã€ã³ããã¯ã¹ã®id64ããŒã¢ã³ãžã®ããŒãããµããŒãããŸããã ããã§æºåããŠãåžžã«--enable-id64ã匷å¶çã«æå¹ã«ããŸãã
SphinxQLã§ã¯ãè€æ°ã¯ãšãªãå±æ§ã®æŽæ°ãDESCRIBEãSHOW TABLESãDELETE ... WHERE id INïŒ...ïŒãããã³ããããçš®é¡ã®ããŠããªããšããµããŒãããŸããã
圢æ = stem_enã€ã³ãã¯ã»ãŒã·ã§ã³ã1.3åå éããŠãè±èªã®ã¹ãããŒãæ°åæé©åããŸããã
倧ãããŠåããã¡ã€ã«ã®ã¹ãããããæé©åããã¹ãããŒãšãšãã«1.5åãããã«2åé«éã«ãªããŸããã
ãã¡ããããã°ã¯ã¢ã«ãŠã³ããªãã§ä¿®æ£ãããŸããã
2.0.2ã§äœãïŒãã€ïŒåŸ ã€ã
幎ã«äžåºŠãªãªãŒã¹ããªãªãŒã¹ããæªæã®ããåŸåãšããã©ã³ã¯ã«äœãæ®ãã®æéãé転ãããããšæããŸãã ãããã£ãŠãç§ãã¡ã¯ãã®å€ã«
åžžã«ååšããããã°ãšé床ãã¿ã¹ã¯ïŒãã°ã®å°å ¥ãšé床ã®é€å»ïŒã«å ããŠãRTã®å€ãã®æ©èœïŒéšåæååãMVAããã®ä»ã®æ€çŽ¢ã®ãµããŒãïŒãæ€çŽ¢ã®å質ã«é¢ããç§å¯ã®äœæ¥ãªã©ã®çæèšç»ããããŸãã ã ããã€ããŒãã®æ¹åã ã¡ãªã¿ã«ãããã¯ã¹ã ãŒãºã«å€±æããŸãã
è³ã®äžã§å«ã¶æ¹æ³
Sphinxã®æ©èœã¯ãéåžž4ã€ã®ç°ãªãæ¹æ³ã§è¡šç€ºãããŸãã 第äžã«ãæã 圌ãã¯æ±ããæãšäžæ¡ãã®å°éºŠããçãŸããŸãããããã¯æè¿ã®æ°äžçŽã§ã¯éåžžã«ãŸãã§ãïŒãšãŒãã«ãšããã®ã¹ãã³ã®å»æ¢åŸïŒã 第äºã«ãæã ç§ãã¡ã¯åº§ã£ãŠèããŸãïŒããããç§ãã¡ã¯ãã®ãããªæ©èœãäœãã¹ãã§ããïŒ ãã¡ãããããã§ã¯ãããŸããã ç§ãã¡ã¯ããè¯ãèããäœãä»ã®ããšãããŸãã 第äžã«ãæã ã¯ã©ã€ã¢ã³ãããæ¥ãŠããæ©èœãæ¬åœã«æ¬²ããããéãæãæºåãã§ããŠããããšèšãããããšããããŸãã åžžã«ã¯ã©ã€ã¢ã³ãã説åŸåã«æã¡åã€ããšãã§ãããšã¯éããªããããåºå®ããå¿ èŠããããŸãã B-4xãæã«ã¯ãŠãŒã¶ãŒãåã蟌ãã§æžãïŒãŸã æ©èœãå®è¡ããŠããªãçç±ã ãŸã æ©èœããŸã å®è¡ããŠããªãçç±ã¯æ¬åœã§ããïŒ ç§ãã¡ã¯åº§ã£ãŠãèããŠãç ãåããŸãããã¡ãããç§ãã¡ã¯ããããŸããã ããããç§ãã¡ã¯èšç»éãã«é²ã¿ããããåŸã§è¡ããŸãïŒ
ããã§ã衚瀺ããå¿ èŠã®ããæ©èœãåŸãããã«ãããã«ã€ããŠããã«ã倧声ã§ãã¯ã£ãããšãå®æçã«è©±ãå¿ èŠããããŸãã ããã«ã¯ããã°ãã©ãã«ãŒã2å䜿çšã§ããŸãã ãŸããæ°ããæ©èœã®ãªã¯ãšã¹ããããã«çœ®ãå¿ èŠããããŸãã 次ã«ãæ¢åã®ãªã¯ãšã¹ãããµãã¹ã¯ã©ã€ãããå¿ èŠããããŸãïŒãã°ã®ç£èŠïŒã ãã°ãã©ãã«ãŒã®ã¡ã€ã³ããŒãžã«ã¯ãç£èŠãããŠããªãäžäœã®ãã°ã®ç®ç«ããªããªã¹ãããããŸãã æ©èœã®éèŠæ§ãå€æããããã®å¥ã®åªããèªååãããæ¹æ³ã¯ãªããããããã§ç¢ºèªããŸãããããã£ãŠããã°è¿œè·¡ã·ã¹ãã ã®æ©èœã«ãæ祚ããããããé¡ãããŸãã
åèš
å€ãã®æ©èœãå®è¡ãã 2.0.1-betaããªãªãŒã¹ããŸãã ã åæã«ãç§ãã¡ã¯åœŒã«ã€ããŠåå¿è åãã®æ¬ãæžããäžçŽè åãã®æ¬¡ã®æ¬ã«ã€ããŠèããŠããŸãã ææªã®æµïŒç§ãã¡èªèº«ïŒãåãã次ã®ãªãªãŒã¹ã§å€ãã®ããšããããã®ã§ãããããã«å€æŽããŸãã ããããæ¹æ³ã§ç§ãã¡ãå©ããããšãã§ããŸã ã åŸæ¥ã ãã£ãŒãããã¯ããã°ã®ç¹åŸŽçãªã·ã£ãããèŠã€ããããšãéåžžã«æåŸ ããŠããŸã ã
ãã®ãããªããšã