diff --git a/config/initializers/redis_search.rb b/config/initializers/redis_search.rb index 5fe14cf3..f8489b1e 100644 --- a/config/initializers/redis_search.rb +++ b/config/initializers/redis_search.rb @@ -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 diff --git a/vendor/built_in_modules/announcement/app/controllers/panel/announcement/front_end/bulletins_controller.rb b/vendor/built_in_modules/announcement/app/controllers/panel/announcement/front_end/bulletins_controller.rb index 1449ec91..33f5df00 100644 --- a/vendor/built_in_modules/announcement/app/controllers/panel/announcement/front_end/bulletins_controller.rb +++ b/vendor/built_in_modules/announcement/app/controllers/panel/announcement/front_end/bulletins_controller.rb @@ -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