开发者社区> 问答> 正文

sphinx全文搜索报错?报错

根据教程安装了一个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
}

 

 

 

请各位大牛帮忙看一下什么问题谢谢!!!

展开
收起
爱吃鱼的程序员 2020-06-08 13:07:43 452 0
1 条回答
写回答
取消 提交回答
  • https://developer.aliyun.com/profile/5yerqm5bn5yqg?spm=a2c6h.12873639.0.0.6eae304abcjaIB

    你这个问题解决了吗?能给我说说你怎么解决的吗?

    我换了个有search的版本就好了
    2020-06-08 13:08:02
    赞同 展开评论 打赏
问答排行榜
最热
最新

相关电子书

更多
MongoDB5.0搜索附近的人车物 立即下载
低代码开发师(初级)实战教程 立即下载
阿里巴巴DevOps 最佳实践手册 立即下载