【问题标题】:Sphinx Search not returning results or errors狮身人面像搜索不返回结果或错误
【发布时间】:2012-10-25 15:17:44
【问题描述】:

我一直在使用 sphinxapi.php,脚本运行良好,您可以查看 at this pastebin。您可以查看我的表结构right here,这就是我的 sphinx.conf 文件的设置方式:

# Minimal Sphinx configuration sample (clean, simple, functional)
#

#Movie Source
source movielist
{
    type            = mysql
    sql_host        = localhost
    sql_user        = root
    sql_pass        = jetru9rU
    sql_db          = imdb
    sql_port        = 3306

    sql_query   = \
        SELECT id, title, subtitle, year_created FROM movielist

    sql_attr_string     = title
    sql_attr_string     = subtitle
    sql_attr_uint       = year_created

    sql_query_info      = SELECT * FROM movielist WHERE id=$id

}
#Movie Index
index movieindex
{
    source          = movielist
    path            = /var/data/movieindex
    docinfo         = extern
    charset_type        = sbcs
}

#Realtime indexing
index movieindexrt
{
    type            = rt
    rt_mem_limit        = 32M

    path            = /var/data/movieindexrt
    charset_type        = utf-8

    rt_field        = title
    rt_field        = subtitle
}

indexer
{
    mem_limit       = 32M
}


searchd
{
    listen          = 9312
    listen          = 9306:mysql41
    log         = /var/log/sphinxsearch/searchd.log
    query_log       = /var/log/sphinxsearch/query.log
    read_timeout        = 5
    max_children        = 30
    pid_file        = /var/log/sphinxsearch/searchd.pid
    max_matches     = 1000
    seamless_rotate     = 1
    preopen_indexes     = 1
    unlink_old      = 1
    workers         = threads # for RT to work
    binlog_path     = /var/data
}

我没有看到的 .conf 文件有什么问题?

【问题讨论】:

  • 它是否有效?在标题中你说不是。但是在你说你的脚本工作正常的问题中。它是哪一个?将有助于解释有关您遇到的问题的更多信息...

标签: php database search text sphinx


【解决方案1】:

啊!您没有字段。有关详细信息,请参阅此页面:

http://sphinxsearch.com/wiki/doku.php?id=fields_and_attributes

【讨论】:

    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2013-11-29
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多