doudang9147 2014-06-05 07:18
浏览 41
已采纳

Sphinx INTERNAL ERROR:传入模式不匹配

I am trying to get this index to work:

sql_query               = \

SELECT bo.es_id, bo.es_id as id, mem.es_country, es_uid, bo.es_featured 
as es_featured,
**bo.es_reverse_featured**, mem.es_signup_status as es_signup_status, mem.es_memtype as es_memtype, es_title, es_keywords, bo.tempdate, bo.es_postedon, bo.es_reverse_featured, bo.es_viewed, mem.es_reverse_memtype \
                FROM ephpb2b_offers_buy bo INNER JOIN ephpb2b_members mem ON bo.es_uid=mem.es_id \
        Where bo.es_featured IN (0,1)

sql_attr_uint = id
sql_attr_uint = es_signup_status
sql_attr_uint = es_memtype
sql_attr_uint = es_reverse_memtype
sql_attr_uint = es_country
sql_attr_uint = es_uid
sql_attr_timestamp = es_postedon
sql_attr_timestamp = tempdate
**sql_attr_uint = es_reverse_featured**
sql_attr_uint = es_viewed
sql_attr_uint = es_featured

It's giving me error:

    index tradeban_b2bdb_bo_relevent: INTERNAL ERROR: incoming-schema mismatch
(in=uint es_reverse_featured:32@288, my=uint es_reverse_featured:32@128)

I tried googling and came up with this SO question. But it's about Ruby and thinking-sphinx and and I am using php. What does this error mean and how can I resolve it?

  • 写回答

2条回答 默认 最新

  • doudu2515 2014-06-05 07:31
    关注

    From what I understand from the few responses, some other questions and the sourcecode: You have either

    • created multiple indexes for the same column
    • or, what seems likelier to me here, is that you also have an index called es_reverse_featured. Since you are trying to select a same-named column inside of your query, these clash.

    Try the following query instead, which renames your column to es_reverse_featured_2:

    SELECT bo.es_id, bo.es_id as id, mem.es_country, es_uid,
     bo.es_featured AS es_featured,
     bo.es_reverse_featured AS es_reverse_featured_2,
     mem.es_signup_status AS es_signup_status, mem.es_memtype as es_memtype, es_title,
     es_keywords, bo.tempdate, bo.es_postedon, bo.es_reverse_featured, bo.es_viewed,
     mem.es_reverse_memtype
    FROM ephpb2b_offers_buy bo
    INNER JOIN ephpb2b_members mem ON bo.es_uid=mem.es_id
    Where bo.es_featured IN (0,1)
    
    本回答被题主选为最佳回答 , 对您是否有帮助呢?
    评论
查看更多回答(1条)

报告相同问题?

悬赏问题

  • ¥15 为什么我运行这个网络会出现以下报错?CRNN神经网络
  • ¥20 steam下载游戏占用内存
  • ¥15 CST保存项目时失败
  • ¥15 树莓派5怎么用camera module 3啊
  • ¥20 java在应用程序里获取不到扬声器设备
  • ¥15 echarts动画效果的问题,请帮我添加一个动画。不要机器人回答。
  • ¥15 Attention is all you need 的代码运行
  • ¥15 一个服务器已经有一个系统了如果用usb再装一个系统,原来的系统会被覆盖掉吗
  • ¥15 使用esm_msa1_t12_100M_UR50S蛋白质语言模型进行零样本预测时,终端显示出了sequence handled的进度条,但是并不出结果就自动终止回到命令提示行了是怎么回事:
  • ¥15 前置放大电路与功率放大电路相连放大倍数出现问题