0

我跟着RailsCast#120爲Rails 3應用程序設置Sphinx和thinking_sphinx。我正在使用Windows。在我的模型索引定義是這樣的:thinking_sphinx錯誤:索引列號1沒有名稱

define_index do 
indexes miniresume, :as => :miniresume 
indexes categories.categoryname, :as => :category_name 
end 

然而,當我試圖運行耙:TS --trace,我得到有關列1沒有任何名稱的錯誤。任何幫助讚賞。

$ rake ts:index --trace 
** Invoke ts:index (first_time) 
** Invoke thinking_sphinx:index (first_time) 
** Invoke thinking_sphinx:app_env (first_time) 
** Execute thinking_sphinx:app_env 
** Execute thinking_sphinx:index 
Generating Configuration to C:/rails32/pa02/config/development.sphinx.conf 
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 'C:/rails32/pa02/config/development.sphinx.conf'... 
indexing index 'post_core'... 
ERROR: index 'post_core': column number 1 has no name. 
total 0 docs, 0 bytes 
total 0.083 sec, 0 bytes/sec, 0.00 docs/sec 
skipping non-plain index 'post'... 
total 0 reads, 0.000 sec, 0.0 kb/call avg, 0.0 msec/call avg 
total 0 writes, 0.000 sec, 0.0 kb/call avg, 0.0 msec/call avg 
** Execute ts:index 

回答

2

切換到64位版本的獅身人面像爲我解決了這個問題。我也使用了64位MySQL,我不知道這是你的情況。

相關問題