我已经在我的centos中安装了sphinx 2.9,但是我无法索引搜索文件以在我的预建数据库中进行搜索查询。 下面是我在sphinx.conf中的代码
source src1
{
type = mysql
sql_host = *****
sql_user = *********
sql_pass = ****
sql_db = *****
sql_port = 3306 # optional, default is 3306
sql_query = \
SELECT people_id,people_fname \
FROM people
sql_attr_uint = people_id
sql_attr_uint = people_fname
}
index test1
{
source = src1
path = /var/lib/sphinx/test1
}
indexer
{
mem_limit = 128M
}
然后我运行命令sudo bin / indexer test1,它给出了
indexing index 'test1'...
WARNING: attribute 'people_id' not found - IGNORING
ERROR: index 'test1': No fields in schema - will not index.
所以我在这个
中出错了