/**
  * Sets the configuration settings for the strategy
  *
  * @param $config
  * use_single => boolean
  * index => 'index_name'
  */
 public function setConfig($config = array())
 {
     // @see $sugar_config['full_text_engine']['Elastic']['index_strategy']['config']['index_name']
     // to override the default name which is by default the unique instance id
     $this->indexName = empty($config['index_name']) ? $this->getUniqueIndexName() : strtolower($config['index_name']);
     parent::setConfig($config);
 }
 /**
  * (non-PHPdoc)
  * @see SugarSearchEngineElasticIndexStrategyBase::setConfig()
  */
 public function setConfig($config = array())
 {
     parent::setConfig($config);
     // parse config settings
     // TODO: add cache wrappers ?
     $this->setPrefix();
     $this->setReadAlias();
     $this->setWriteDefaultIndex();
     $this->setModuleIndices();
 }