duanfa0072 2013-11-15 20:56
浏览 19
已采纳

狮身人面像搜索错误。 没有索引

This is my conf file :

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

}

But when I try to index it using Indexer, this is the output that I end up getting without anything indexed :

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

What am I doing wrong?

  • 写回答

1条回答 默认 最新

  • doushi1510 2013-11-15 21:05
    关注

    ERROR: index 'users': key 'path' not found.

    Your index has no path - you need to tell sphinx where to save the index!

    本回答被题主选为最佳回答 , 对您是否有帮助呢?
    评论

报告相同问题?

悬赏问题

  • ¥100 set_link_state
  • ¥15 虚幻5 UE美术毛发渲染
  • ¥15 CVRP 图论 物流运输优化
  • ¥15 Tableau online 嵌入ppt失败
  • ¥100 支付宝网页转账系统不识别账号
  • ¥15 基于单片机的靶位控制系统
  • ¥15 真我手机蓝牙传输进度消息被关闭了,怎么打开?(关键词-消息通知)
  • ¥15 装 pytorch 的时候出了好多问题,遇到这种情况怎么处理?
  • ¥20 IOS游览器某宝手机网页版自动立即购买JavaScript脚本
  • ¥15 手机接入宽带网线,如何释放宽带全部速度