根据教程安装了一个sphinx
建立了索引
但是搜索的时候报错
这是我的配置文件
source srcDB
{
type = mysql
sql_host = localhost
sql_user = root
sql_pass = abc.123
sql_db = test
sql_port = 3306
sql_query_pre = SET NAMES utf8
#sql_query_pre = SET SESSION query_cache_type=OFF
sql_query = SELECT title,content FROM documents
sql_attr_bigint = trade_id
sql_attr_bigint = uid_buy
sql_attr_bigint = uid_sell
sql_attr_timestamp = trade_time
sql_query_info = SELECT * FROM documents WHERE id=$id
}
index goods_title
{
source = srcDB
path = D:/sphinx/data/documents
charset_type = utf-8
html_strip = 1
}
indexer
{
mem_limit = 128M
}
searchd
{
listen = 9312
listen = 9306:mysql41
log = D:/sphinx/log/searchd.log
query_log = D:/sphinx/log/query.log
read_timeout = 5
max_children = 30
pid_file = D:/sphinx/log/searchd.pid
max_matches = 1000
seamless_rotate = 1
preopen_indexes = 1
unlink_old = 1
workers = threads # for RT to work
binlog_path = D:/sphinx/data
}
请各位大牛帮忙看一下什么问题谢谢!!!
你这个问题解决了吗?能给我说说你怎么解决的吗?
我换了个有search的版本就好了版权声明:本文内容由阿里云实名注册用户自发贡献,版权归原作者所有,阿里云开发者社区不拥有其著作权,亦不承担相应法律责任。具体规则请查看《阿里云开发者社区用户服务协议》和《阿里云开发者社区知识产权保护指引》。如果您发现本社区中有涉嫌抄袭的内容,填写侵权投诉表单进行举报,一经查实,本社区将立刻删除涉嫌侵权内容。