我们的优势

2011-11-16

Sphinx 2.0.2-beta 测试版


2011年11月16日,Sphinx 2.0.2-beta 测试版发布;CoreSeek版本正在紧张开发中,最新版本的中文手册也在紧张翻译中。
该版本仍为测试版,请谨慎使用到生产环境。Sphinx 2.0.2-beta测试版下载地址:前往下载

新功能和重大变化. Sphinx version 2.0.2-beta is now out, with超过30项新功能,options, and other significant changes. It also marks a feature freezeof the 2.0.x branch, and 2.0.3-release is scheduled shortly.

最激动人心的功能. The most important new features in 2.0.2-beta arethe new MVA64 属性类型,dict=keywords andMVA support in RT indexes,expression-based ranker,ATTACH INDEX statement,and WHERE support in UPDATE statement.

Read on for a quick discussion of the biggest new onesand the planned release cycle, or just proceed toDownloadsand grab it already!

MVA64 64位多值属性 are a further extension of our MVA feature.MVAs let you store a set of unsigned 32-bit values, MVA64 now enables signed64-bit values in addition to that. This is useful to avoid CRC32 collisionswhen hashing string tags, or to encode extra auxiliary data into your MVA.They're supported in both disk and RT indexes.

RT indexes中使用前向搜索(类似LIKE "key%") is now supportedthrough the dict=keywords feature. We deliberately chose tonot implement prefix and infix pre-indexing from disk indexes in RT,because that would have been a huge memory hog. Substring (infix)searching support with dict=keywords is in development now, andschedule for 2.1.x branch.

RT indexes中使用MVA 与 index_exact_words are also supported now.

普通索引转换为RT Indexes. The new ATTACH INDEX statement is important because it lets youquickly convert from disk to RT index. That's right, you now can quicklybatch index the main bulk of your data, then easily switch to RT, and keepupdating the RT index. Right now, ATTACH only lets you convert the index once,and requires an empty RT target. However, enabling batch imports into existing,non-empty RT indexes is planned. That is why we chose to reserve ATTACH upfrontinstead of something like CONVERT.

UPDATE语句的WHERE中支持丰富的条件设置,both with disk and RT indexes, too. So, say, updating prices on a 1000 rowsfrom vendor X or just marking them for deletion just became 1000 times easier.Just like attributes UPDATEs themselves, this should also work in bothdisk and RT backends.

SPH_RANK_EXPR用于使用表达式计算评分. And last but not least, you can now create your own relevanceformulas on the fly with the aid of the expression ranker. Previously,computing relevance values was limited to a number of built-in rankers,and changing the formula that combined various internal ranking factors(not to be confused with attributes) involved writing C++ code, andrebuilding and restarting searchd. From now on, you only need to specifya short and sweet formula, you can do on the fly on a per-query basis,and many more ranking factors are now available than we ever computedbefore. Amusingly, this is not even super slow: on my smallish 1,000,000-documenttest collection, emulating the default ranker with the expression based onewas just 1.1x to 1.3x slower than the compiled C++ code.

2.0.3-release版本正在开发中. Besides the new features, we have also been busy improving ourinternal testing, build, and release processes. And the next release,2.0.3-release is now scheduled in approximately 1 month from now,as opposed to the long standing tradition of shipping it when it's done.We did a lot of testing for 2.0.2-beta, there are no known major issues,and the pre-existing functionality must be more stable than ever.However, our policy is not to tag it "release" until it receivedeven more testing from the community. Thus, if you bump intoanything in 2.0.2-beta, please be sure to report the issue!The earlier you report it, the sooner it gets fixed.

2.0.x分支已经冻结,进入bug修复阶段. From there, the release plan is as follows. 2.0.x branchis now frozen and will only receive bug fixes. So after 2.0.3-releasewe are going to publish bugfix releases on regular basis.The specific intervals are going to be anywhere between1 and 3 months, depending on the number and severity ofreported and fixed issues.

2.0.x分支不再增加新功能. Overall, we added a bunch of cool new stuff in 2.0.2,2.0.x branch is now feature frozen and will be supported fromhere, there's more new exciting stuff coming in 2.1.x, andthis post is getting long. So grab a new version, give it a whirl,and be sure to report any issues so we could work on them for theforthcoming 2.0.3. And thanks for choosing Sphinx!