2012-03-27 29 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實際工作。