oops: set flex config.hangers_enabled before the line that checks for its presence
This commit is contained in:
parent
0d348d6971
commit
349a83123c
1 changed files with 5 additions and 4 deletions
|
@ -2,15 +2,16 @@
|
||||||
|
|
||||||
Flex::Configuration.configure do |config|
|
Flex::Configuration.configure do |config|
|
||||||
|
|
||||||
# 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
|
# 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
|
# enough RAM?), set to false to stop indexing closet hangers and disable
|
||||||
# item queries that reference them.
|
# item queries that reference them.
|
||||||
config.hangers_enabled = true
|
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
|
||||||
|
|
||||||
|
|
||||||
# Add the your result extenders here
|
# Add the your result extenders here
|
||||||
config.result_extenders |= [ FlexSearchExtender ]
|
config.result_extenders |= [ FlexSearchExtender ]
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue