Skip to content
This repository was archived by the owner on Jul 11, 2023. It is now read-only.
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
# >> puts <%= @module_name %>.flex.doc
# you can eventually restrict the doc to a single method by pasing its name:
# >> puts <%= @module_name %>.flex.doc :search
# see the detailed doc for this feature at http://ddnexus.github.io/flex/doc/2-flex/4-Self-Documentation.html
# see the detailed doc for this feature at http://ddnexus.github.io/flex/doc/2-flex/5-Self-Documentation.html

module <%= @module_name %>

Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# Add here your search queries
# see the detailed Source documentation at http://ddnexus.github.io/flex/doc/2-flex/2-Templating/2-Sources.html
# see the detailed Source documentation at http://ddnexus.github.io/flex/doc/2-flex/3-Templating/2-Sources.html


# ANCHORS litheral key: it will not be used as template
Expand All @@ -12,7 +12,7 @@ ANCHORS:
# >> puts <%= @module_name %>.flex.doc
# You can eventually restrict the doc to a single method by pasing its name:
# >> puts <%= @module_name %>.flex.doc :search
# see the detailed doc for this feature at http://ddnexus.github.io/flex/doc/2-flex/4-Self-Documentation.html
# see the detailed doc for this feature at http://ddnexus.github.io/flex/doc/2-flex/5-Self-Documentation.html

# the :cleanable_query is a special variable that get cleaned up if contains illegal characters for the Lucene syntax
search:
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# see the detailed Extenders documentation at http://ddnexus.github.io/flex/doc/2-flex/3-Result-Extenders.html
# see the detailed Extenders documentation at http://ddnexus.github.io/flex/doc/4-flex-models/5-Result-Extenders.html

module <%= @extender_name %>

Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# see the detailed Configuration documentation at http://ddnexus.github.io/flex/doc/1-Global-Doc/3-Configuration.html
# see the detailed Configuration documentation at http://ddnexus.github.io/flex/doc/1-Flex-Project/3-Configuration.html

Flex::Configuration.configure do |config|

Expand All @@ -12,22 +12,22 @@ Flex::Configuration.configure do |config|
config.result_extenders |= [ <%= "#{@extender_name}" %> ]

# Add the default variables here:
# see also the details Variables documentation at http://ddnexus.github.io/flex/doc/2-flex/2-Templating/4-Variables.html
# see also the details Variables documentation at http://ddnexus.github.io/flex/doc/2-flex/3-Templating/4-Variables.html
# config.variables.deep_merge! :index => 'my_index',
# :type => 'project',
# :anything => 'anything

# used by the live-reindex feature
# if you change it you must deploy the change first, then you can live-reindex in any next deploy
# read the documentation at http://ddnexus.github.io/flex/doc/2-flex/7-Live-Reindex.html#flexconfigurationapp_id
# read the documentation at http://ddnexus.github.io/flex/doc/6-flex-admin/2-Live-Reindex.html#flexconfigurationapp_id
config.app_id = '<%= Time.now.strftime('%Y%m%d%H%M%S_') + Rails.application.class.name.split('::').first.underscore %>_' + Rails.env

# used by the live-reindex feature
# Uncomment and set the redis client only if you don't want to use the redis default client
# config.redis = Redis.new(:host => somehost, :port: 6379, :db = 1)


# Logger variables: see http://ddnexus.github.io/flex/doc/1-Global-Doc/3-Configuration.html
# Logger variables: see http://ddnexus.github.io/flex/doc/1-Flex-Project/3-Configuration.html
# config.logger.debug_variables = false
# config.logger.debug_request = false
# config.logger.debug_result = false
Expand Down