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 前端echarts坐标轴问题
  • ¥15 CMFCPropertyPage
  • ¥15 ad5933的I2C
  • ¥15 请问RTX4060的笔记本电脑可以训练yolov5模型吗?
  • ¥15 数学建模求思路及代码
  • ¥50 silvaco GaN HEMT有栅极场板的击穿电压仿真问题
  • ¥15 谁会P4语言啊,我想请教一下
  • ¥15 这个怎么改成直流激励源给加热电阻提供5a电流呀
  • ¥50 求解vmware的网络模式问题 别拿AI回答
  • ¥24 EFS加密后,在同一台电脑解密出错,证书界面找不到对应指纹的证书,未备份证书,求在原电脑解密的方法,可行即采纳