Class: BaseIndexer::SolrConfigurationFromFile
- Inherits:
-
SolrConfiguration
- Object
- SolrConfiguration
- BaseIndexer::SolrConfigurationFromFile
- Includes:
- Singleton
- Defined in:
- lib/base_indexer/solr/solr_configuration_from_file.rb
Overview
It reads the solr configuration from YAML file
Instance Method Summary collapse
-
#get_configuration_hash ⇒ Hash
Hash represents the solr configuration.
-
#read(yaml_file = nil) ⇒ Object
reads the solr yaml configuration file.
Instance Method Details
#get_configuration_hash ⇒ Hash
Returns hash represents the solr configuration.
21 22 23 |
# File 'lib/base_indexer/solr/solr_configuration_from_file.rb', line 21 def get_configuration_hash @solr_config_hash end |
#read(yaml_file = nil) ⇒ Object
reads the solr yaml configuration file
12 13 14 |
# File 'lib/base_indexer/solr/solr_configuration_from_file.rb', line 12 def read(yaml_file=nil) @solr_config_hash = YAML.load_file(yaml_file) end |