【发布时间】:2014-09-19 19:00:06
【问题描述】:
我的新编译的 2.2.4 sphinx 安装有问题。
二进制文件是使用参数构建的:
$ ./configure --without-pgsql --with-mysql --enable-id64 --prefix=/usr/local/sphinxsearch/2.2.4 --with-mysql-libs=/usr/bin
为了测试,我创建了只有一行的 wordform 字典。我删除了旧索引,并尝试使用命令创建新索引:
/usr/bin/indexer --rotate --config /etc/sphinxsearch/sphinx.conf indexname
这给了我结果:
Sphinx 2.2.4-id64-release (r4806)
Copyright (c) 2001-2014, Andrew Aksyonoff
Copyright (c) 2008-2014, Sphinx Technologies Inc (http://sphinxsearch.com)
using config file '/etc/sphinxsearch/sphinx.conf'...
indexing index 'indexname'...
WARNING: index 'indexname': duplicate wordform found ( 'yes > now' ). Fix your wordforms file '/var/lib/sphinxsearch/wordforms.txt'.
我的配置:
index indexname
{
source = indexsource
path = /var/lib/sphinxsearch/data/index
dict = keywords
docinfo = extern
min_word_len = 2
wordforms = /var/lib/sphinxsearch/wordforms.txt
}
所以我的问题是:如何正确配置 sphinx 和 wordforms。 2.1.9版本就没有这个问题了
其他信息:
今天我尝试构建 2.2.3-beta 版本,你猜怎么着?问题不存在。所以新的稳定版2.2.4肯定有问题:(
【问题讨论】:
标签: linux dictionary configuration 64-bit sphinx