铁轨上的红宝石 - 思考狮身人面像回归"bad multi-query count 0 (must be in 1..32 range)"



我正在尝试将狮身人面像(2.0.1 beta)与思考狮身人面像 2.0.4(在 Rails 3.0.3 上)一起使用。到目前为止,我有一个模型,我想添加到我的索引中,并且索引已经起作用。我也可以开始通过 rake 搜索并查看进程正在运行。

但是,当尝试在Rails中进行简单搜索(如User.search"name")时,searchd抱怨"错误的多查询计数 0(必须在 1..32 范围内)"

这是回溯:

from /vendor/bundle/ruby/1.8/gems/riddle-1.3.2/lib/riddle/client.rb:663:in `request'
from /vendor/bundle/ruby/1.8/gems/riddle-1.3.2/lib/riddle/client.rb:226:in `run'
from /vendor/bundle/ruby/1.8/gems/riddle-1.3.2/lib/riddle/client.rb:333:in `query'
from /vendor/bundle/ruby/1.8/gems/thinking-sphinx-2.0.4/lib/thinking_sphinx/search.rb:397:in `populate'
from /vendor/bundle/ruby/1.8/gems/activesupport-3.0.3/lib/active_support/notifications.rb:52:in `instrument'
from /vendor/bundle/ruby/1.8/gems/activesupport-3.0.3/lib/active_support/notifications/instrumenter.rb:21:in `instrument'
from /vendor/bundle/ruby/1.8/gems/activesupport-3.0.3/lib/active_support/notifications.rb:52:in `instrument'
from /vendor/bundle/ruby/1.8/gems/thinking-sphinx-2.0.4/lib/thinking_sphinx/search.rb:499:in `log'
from /vendor/bundle/ruby/1.8/gems/thinking-sphinx-2.0.4/lib/thinking_sphinx/search.rb:507:in `log'
from /vendor/bundle/ruby/1.8/gems/thinking-sphinx-2.0.4/lib/thinking_sphinx/search.rb:396:in `populate'
from /vendor/bundle/ruby/1.8/gems/thinking-sphinx-2.0.4/lib/thinking_sphinx/search.rb:548:in `call'
from /vendor/bundle/ruby/1.8/gems/thinking-sphinx-2.0.4/lib/thinking_sphinx/search.rb:548:in `retry_on_stale_index'
from /vendor/bundle/ruby/1.8/gems/thinking-sphinx-2.0.4/lib/thinking_sphinx/search.rb:394:in `populate'
from /vendor/bundle/ruby/1.8/gems/thinking-sphinx-2.0.4/lib/thinking_sphinx/search.rb:176:in `method_missing'
from /usr/lib/ruby/1.8/irb.rb:310:in `output_value'
from /usr/lib/ruby/1.8/irb.rb:159:in `eval_input'
from /usr/lib/ruby/1.8/irb.rb:271:in `signal_status'
from /usr/lib/ruby/1.8/irb.rb:155:in `eval_input'
from /usr/lib/ruby/1.8/irb.rb:154:in `eval_input'
from /usr/lib/ruby/1.8/irb.rb:71:in `start'
from /usr/lib/ruby/1.8/irb.rb:70:in `catch'
from /usr/lib/ruby/1.8/irb.rb:70:in `start'
from /vendor/bundle/ruby/1.8/gems/railties-3.0.3/lib/rails/commands/console.rb:44:in `start'
from /vendor/bundle/ruby/1.8/gems/railties-3.0.3/lib/rails/commands/console.rb:8:in `start'
from /vendor/bundle/ruby/1.8/gems/railties-3.0.3/lib/rails/commands.rb:23
from script/rails:7:in `require'

啊,我刚刚在谷歌小组上回答了,但在这里,对于发现这个问题的任何其他人:

这是 Riddle 1.3.2 中的一个错误,已在边缘修复,但目前还没有新的 gem 版本。将谜语添加到您的Gemfile(在您的thinking-sphinx参考上方):

gem 'riddle', :git => 'git://github.com/freelancing-god/riddle.git'

相关内容

  • 没有找到相关文章

最新更新