2011-02-06 79 views
1

我具有多于4个属性的索引“颜色”具有以下配置的空索引:斯芬克斯索引创建当我指定sphinx.conf中

source colorsmain { 
    type = mysql 
    sql_host = 127.0.0.1 
    sql_port = 3306 
    sql_user = xxxx 
    sql_pass = xxxx 
    sql_db = showroom 
    sql_query_range = SELECT MIN(id), MAX(id) from `colors` 
    sql_range_step = 5000 
    sql_query = SELECT id, affiliateproductid, h, s, b, w FROM colors WHERE id >= $start AND id <= $end 
    sql_attr_uint = affiliateproductid 
    sql_attr_uint = h 
    sql_attr_uint = s 
    sql_attr_uint = b 
    sql_attr_uint = w 
} 
index colors { 
    source = colorsmain 
    path = /usr/local/etc/specifycolors 
    docinfo = extern 
    charset_type = utf-8 
    mlock = 1 
    preopen = 1 
} 

当运行索引,但是,它返回下列:

using config file '/usr/local/etc/sphinx.conf'... 
indexing index 'colors'... 
collected 335350 docs, 0.0 MB 
total 335350 docs, 0 bytes 
total 1.184 sec, 0 bytes/sec, 283034.47 docs/sec 
total 0 reads, 0.000 sec, 0.0 kb/call avg, 0.0 msec/call avg 
total 4 writes, 0.000 sec, 0.0 kb/call avg, 0.0 msec/call avg 

奇怪的是,当我注释掉sql_attr_uint线中的任意一个,它工作得很好

using config file '/usr/local/etc/sphinx.conf'... 
indexing index 'colors'... 
collected 335350 docs, 0.6 MB 
sorted 0.3 Mhits, 100.0% done 
total 335350 docs, 600998 bytes 
total 1.428 sec, 420646 bytes/sec, 234715.82 docs/sec 
total 2 reads, 0.011 sec, 4295.3 kb/call avg, 5.5 msec/call avg 
total 7 writes, 0.017 sec, 2595.9 kb/call avg, 2.5 msec/call avg 

我没有在狮身人面像文档中看到关于属性数量限制的任何内容,并且只要我不超过4个属性,这些属性看起来都以各种组合工作。有什么建议?

我在Mac OS X 10.6.6

由于运行狮身人面像0.9.9释放(r2117)!

回答