1
0
Fork 0
forked from OpenNeo/impress

re-enable closet hanger indexing

This commit is contained in:
Emi Matchu 2013-04-23 22:27:59 -05:00
parent 3c91f0cde0
commit fae0a48bb7

View file

@ -4,8 +4,12 @@ Flex::Configuration.configure do |config|
# you MUST add your indexed model names here
config.flex_models = %w[ Item ]
config.hangers_enabled = !Rails.env.production?
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 ]