From 349a83123c5ba5fe4e34a178c5540c6c8677b6fb Mon Sep 17 00:00:00 2001 From: Matchu Date: Tue, 11 Jun 2013 11:22:17 -0700 Subject: [PATCH] oops: set flex config.hangers_enabled before the line that checks for its presence --- config/initializers/flex.rb | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/config/initializers/flex.rb b/config/initializers/flex.rb index e987b5f1..baf5ff29 100644 --- a/config/initializers/flex.rb +++ b/config/initializers/flex.rb @@ -2,14 +2,15 @@ Flex::Configuration.configure do |config| + # If queries like "user:owns" are too much for the server to handle (not + # enough RAM?), set to false to stop indexing closet hangers and disable + # item queries that reference them. + config.hangers_enabled = true + # you MUST add your indexed model names here config.flex_models = %w[ Item ] config.flex_models << 'ClosetHanger' if config.hangers_enabled - # If queries like "user:owns" are too much for the server to handle (not - # enough RAM?), set to false to stop indexing closet hangers and disable - # item queries that reference them. - config.hangers_enabled = true # Add the your result extenders here config.result_extenders |= [ FlexSearchExtender ]