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 ]