@ 2011年10月23日

Ubuntu Server 下编译 sphinx 的 xmlpipe2

在 Ubuntu Server 默认环境下编译安装 sphinx 竟然不支持 xmlpipe2 数据源,提示

WARNING: source 'index1': xmlpipe2 support NOT compiled in. To use xmlpipe2, install missing XML libraries, reconfigure, and rebuild Sphinx

在官方论坛里面找到答案。

@ 2011年10月22日

Sphinx xmlpipe2 MVA 属性定义

今天给 Damdon 做 Search Engine,用的是  sphinx 0.9.9 全文检索引擎,由于某些 Content 包含多个分类 (Category),因此需要使用 sphinx 的 MVA (multi-valued-attribute) 属性类型,我使用了 xmlpipe2 数据源

@ 2010年12月03日

最近的性能优化笔记

最近忙着给一大堆网站做性能优化,发现在很多情况下,结果并不真像你假设那样,特别是在很紧急的情况下,如果力用到不对的地方,总是事倍功半,而且总得加班 -_-#

1. 不要盲目靠 ab 来断定性能好坏

2. 独立数据库并不是就会提速

3. 小缓存不如不用

4. memcached 并不总比 file 快

...

@ 2010年08月07日

Mac OS X 编译 sphinx 的一问题解决办法

昨天研究了一下 sphinx,回家在 Mac OS X 下用同样的方式编译 sphinx 时发生错误,

svn export http://sphinxsearch.googlecode.com/svn/trunk sphinx
cd sphinx
./configure --prefix=/usr/local/sphinx --with-mysql
make
...
sphinxstd.cpp: In function ‘bool sphIsLtLib()’:
sphinxstd.cpp:1001: error: ‘_CS_GNU_LIBPTHREAD_VERSION’ was not declared in this scope
make[2]: *** [sphinxstd.o] Error 1
make[1]: *** [all] Error 2
make: *** [all-recursive] Error 1

最终在 sphinx 的 bug list 下找到该问题的解决办法 (bug #515)。

...

© 2011 Bun Wong

本博客基于 Bun PHP Framework 构建 • 粤ICP备07036370号