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 重新命个名子

相关文章:

  • 2021-09-06
  • 2021-12-27
  • 2021-11-08
  • 2022-12-23
  • 2022-12-23
  • 2021-05-22
  • 2022-12-23
猜你喜欢
  • 2021-12-03
  • 2021-07-02
  • 2021-07-18
  • 2022-12-23
  • 2021-07-22
  • 2021-08-09
  • 2022-12-23
相关资源
相似解决方案