2012-03-27 49 views
0

我想指数约3000文档,但这里是我得到斯芬克斯自称内存太低了,我的ID是空

[[email protected] data]# /usr/local/sphinx/bin/indexer --all 
Sphinx 2.0.4-release (r3135) 
Copyright (c) 2001-2012, Andrew Aksyonoff 
Copyright (c) 2008-2012, Sphinx Technologies Inc (http://sphinxsearch.com) 

using config file '/usr/local/sphinx/etc/sphinx.conf'... 
indexing index 'catalog'... 
WARNING: Attribute count is 0: switching to none docinfo 
WARNING: collect_hits: mem_limit=0 kb too low, increasing to 12288 kb 
WARNING: source catalog: skipped 3558 document(s) with zero/NULL ids 
collected 0 docs, 0.0 MB 
total 0 docs, 0 bytes 
total 0.040 sec, 0 bytes/sec, 0.00 docs/sec 
total 1 reads, 0.000 sec, 0.0 kb/call avg, 0.0 msec/call avg 
total 5 writes, 0.000 sec, 0.0 kb/call avg, 0.0 msec/call avg 

我有它设置为rt_mem_limit = 512M为什么它告诉我,我没有足够的记忆?

回答

1

rt_mem_limit!= mem_limit - 它们是不同的变量 - 具有不同的目的。

mem_limit - 是索引 http://sphinxsearch.com/docs/current.html#conf-mem-limit 过程中使用索引的价值 - 它在你的配置文件的“索引”部分。

你必须让它发送太loo。要么将它保留(使用32M),要么将其更改为更好的值。

但是,您在数据集中也没有document_ids。检查你的sql_query实际工作。