首页 > 其他 > 详细

coreseek(sphinx)错误:WARNING: attribute 'id' not found - IGNORING

时间:2015-09-01 12:30:12      阅读:546      评论:0      收藏:0      [点我收藏+]

coreseek(sphinx)错误:WARNING: attribute ‘id‘ not found - IGNORING原因及解决方法

coreseek(sphinx)建立索引时提示错误:
WARNING: attribute ‘id‘ not found - IGNORING

原因:
sphinx不能使用主键来做属性字段,你的索引配置文件中一定用了类似
sql_attr_uint = id (id为表的主键)

解决方法:
去掉sql_attr_uint = id
或改为
sql_query = SELECT id,id as aid,body from table
sql_attr_uint = aid
即:在sql_query中给id用as 重新命个名子

coreseek(sphinx)错误:WARNING: attribute 'id' not found - IGNORING

原文:http://www.cnblogs.com/timelesszhuang/p/4775275.html

(1)
(1)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!