【问题标题】:Sphinx Search Error. Not indexing狮身人面像搜索错误。不索引
【发布时间】:2013-11-29 09:34:07
【问题描述】:

这是我的配置文件:

source src1
{

type = mysql
sql_host = localhost
sql_user = root
sql_pass = rootpass
sql_db = something
sql_port = 9306

sql_query = \
    SELECT id, username, firstname, lastname , gender , email , created_on FROM user

sql_attr_timestamp = created_on
}

index users
{

source = src1
charset_type = sbcs

}

但是当我尝试使用 Indexer 对其进行索引时,这是我最终得到的没有任何索引的输出:

indexer --config /var/www/mysite/sphinx.conf --all
Sphinx 2.0.9-release (rel20-r4115)
Copyright (c) 2001-2013, Andrew Aksyonoff
Copyright (c) 2008-2013, Sphinx Technologies Inc (http://sphinxsearch.com)

using config file '/var/www/mysite/sphinx.conf'...
indexing index 'users'...
ERROR: index 'users': key 'path' not found.
total 0 reads, 0.000 sec, 0.0 kb/call avg, 0.0 msec/call avg
total 0 writes, 0.000 sec, 0.0 kb/call avg, 0.0 msec/call avg

我做错了什么?

【问题讨论】:

    标签: php macos indexing sphinx


    【解决方案1】:

    错误:索引“用户”:未找到键“路径”。

    您的索引没有path - 您需要告诉 sphinx 将索引保存在哪里!

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 2015-07-27
      • 2015-04-22
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2012-10-25
      相关资源
      最近更新 更多