已回答:在模型中使用set_primary_key "QTLID“,以告知模型盗用ID不是ID
当我使用rake:ts索引时,我得到了这个错误
Cannot automatically map attribute sphinx_internal_id in QtlTable to an
equivalent Sphinx type (integer, float, boolean, datetime, string as ordinal).
You could try to explicitly convert the column's value in your define