fix announcement loading failed caused by impression. disable pinyin search.

This commit is contained in:
Matthew K. Fu JuYuan 2012-07-25 18:26:05 +08:00
parent 87549d4e1f
commit 4768da3c7a
2 changed files with 2 additions and 2 deletions

View File

@ -10,7 +10,7 @@ redis = Redis::Namespace.new("orbit_nccu:redis_search2", :redis => redis)
Redis::Search.configure do |config|
config.redis = redis
config.complete_max_length = 100
config.pinyin_match = true
#config.pinyin_match = true
# use rmmseg, true to disable it, it can save memroy
config.disable_rmmseg = false
end

View File

@ -37,7 +37,7 @@ class Panel::Announcement::FrontEnd::BulletinsController < OrbitWidgetController
else
@bulletin = Bulletin.all.can_display.where(_id: params[:id]).first
unless @bulletin.disable?
impressionist(@bulletin)
#impressionist(@bulletin)
get_categorys
else
render :nothing => true, :status => 403