我升级了rails应用程序,我在暂存环境中结束了此错误。它工作正常,直到我重新启动我的搜索。 我重新生成了配置并重新编制了索引。我确实有一个旧的副本,但它似乎也不适用它。
非常感谢任何帮助。
Riddle :: OutOfBoundsError(searchd error(status:1):per-query max_matches = 1000 out of bounds(per-server max_matches = 500)):
谜语(1.5.11)lib / riddle / client.rb:682:in request'
riddle (1.5.11) lib/riddle/client.rb:228:in
run'
谜语(1.5.11)lib / riddle / client.rb:347:in query'
/home/kartz/.rvm/gems/ruby-1.9.3-p484@rails3.0.6/bundler/gems/thinking-sphinx-55788f7b963a/lib/thinking_sphinx/connection.rb:58:in
method_missing'
/home/kartz/.rvm/gems/ruby-1.9.3-p484@rails3.0.6/bundler/gems/thinking-sphinx-55788f7b963a/lib/thinking_sphinx/search.rb:439:in block (3 levels) in populate'
/home/kartz/.rvm/gems/ruby-1.9.3-p484@rails3.0.6/bundler/gems/thinking-sphinx-55788f7b963a/lib/thinking_sphinx/search.rb:403:in
阻止take_client”
/home/kartz/.rvm/gems/ruby-1.9.3-p484@rails3.0.6/bundler/gems/thinking-sphinx-55788f7b963a/lib/thinking_sphinx/connection.rb:16:in block in take'
innertube (1.0.2) lib/innertube.rb:127:in
take'
/home/kartz/.rvm/gems/ruby-1.9.3-p484@rails3.0.6/bundler/gems/thinking-sphinx-55788f7b963a/lib/thinking_sphinx/connection.rb:13:in take'
/home/kartz/.rvm/gems/ruby-1.9.3-p484@rails3.0.6/bundler/gems/thinking-sphinx-55788f7b963a/lib/thinking_sphinx/search.rb:401:in
take_client'
/home/kartz/.rvm/gems/ruby-1.9.3-p484@rails3.0.6/bundler/gems/thinking-sphinx-55788f7b963a/lib/thinking_sphinx/search.rb:438:in block (2 levels) in populate'
activesupport (3.0.6) lib/active_support/notifications.rb:52:in
阻止仪器'
activesupport(3.0.6)lib / active_support / notifications / instrumenter.rb:21:in instrument'
activesupport (3.0.6) lib/active_support/notifications.rb:52:in
instrument'
/home/kartz/.rvm/gems/ruby-1.9.3-p484@rails3.0.6/bundler/gems/thinking-sphinx-55788f7b963a/lib/thinking_sphinx/search.rb:566:in log'
/home/kartz/.rvm/gems/ruby-1.9.3-p484@rails3.0.6/bundler/gems/thinking-sphinx-55788f7b963a/lib/thinking_sphinx/search.rb:575:in
log'
/home/kartz/.rvm/gems/ruby-1.9.3-p484@rails3.0.6/bundler/gems/thinking-sphinx-55788f7b963a/lib/thinking_sphinx/search.rb:437:in block in populate'
/home/kartz/.rvm/gems/ruby-1.9.3-p484@rails3.0.6/bundler/gems/thinking-sphinx-55788f7b963a/lib/thinking_sphinx/search.rb:616:in
call'
/home/kartz/.rvm/gems/ruby-1.9.3-p484@rails3.0.6/bundler/gems/thinking-sphinx-55788f7b963a/lib/thinking_sphinx/search.rb:616:in retry_on_stale_index'
/home/kartz/.rvm/gems/ruby-1.9.3-p484@rails3.0.6/bundler/gems/thinking-sphinx-55788f7b963a/lib/thinking_sphinx/search.rb:434:in
填充'
/home/kartz/.rvm/gems/ruby-1.9.3-p484@rails3.0.6/bundler/gems/thinking-sphinx-55788f7b963a/lib/thinking_sphinx/search.rb:187:in method_missing'
/home/kartz/.rvm/gems/ruby-1.9.3-p484@rails3.0.6/bundler/gems/thinking-sphinx-55788f7b963a/lib/thinking_sphinx/search_methods.rb:412:in
search_count'
app / models / community_stats.rb:27:in gather_profile_counts'
app/controllers/account_controller.rb:107:in
个人资料'
actionpack(3.0.6)lib / action_controller / metal / implicit_render.rb:4:in send_action'
actionpack (3.0.6) lib/abstract_controller/base.rb:150:in
process_action'
actionpack(3.0.6)lib / action_controller / metal / rendering.rb:11:在process_action中的process_action'
actionpack (3.0.6) lib/abstract_controller/callbacks.rb:18:in
块中
activesupport(3.0.6)lib / active_support / callbacks.rb:477:在_conditional_callback_around_7795中的block in _run__4420398368285199037__process_action__2238027022263059472__callbacks'
activesupport (3.0.6) lib/active_support/callbacks.rb:221:in
块中
vendor / plugins / clicktale / lib / astrails / clicktale / controller.rb:28:in clicktaleize'
activesupport (3.0.6) lib/active_support/callbacks.rb:220:in
_ conditional_callback_around_7795'
activesupport(3.0.6)lib / active_support / callbacks.rb:446:in _run__4420398368285199037__process_action__2238027022263059472__callbacks'
activesupport (3.0.6) lib/active_support/callbacks.rb:410:in
_ run_process_action_callbacks'
activesupport(3.0.6)lib / active_support / callbacks.rb:94:in run_callbacks'
actionpack (3.0.6) lib/abstract_controller/callbacks.rb:17:in
process_action'
actionpack(3.0.6)lib / action_controller / metal / instrumentation.rb:30:in block in process_action'
activesupport (3.0.6) lib/active_support/notifications.rb:52:in
block in instrument'
activesupport(3.0.6)lib / active_support / notifications / instrumenter.rb:21:in instrument'
activesupport (3.0.6) lib/active_support/notifications.rb:52:in
instrument'
actionpack(3.0.6)lib / action_controller / metal / instrumentation.rb:29:in process_action'
actionpack (3.0.6) lib/action_controller/metal/rescue.rb:17:in
process_action'
答案 0 :(得分:0)
作为所有注释的摘要,riddle将max_matches作为代码中的参数。根据配置传递max_matches会很有帮助。
Article.search' pancakes',:max_matches => 10_000
价:https://pat.github.io/thinking-sphinx/advanced_config.html