You are here

public function Solr36Connector::defaultConfiguration in Search API Solr 4.x

Gets default configuration for this plugin.

Return value

array An associative array with the default configuration.

Overrides SolrConnectorPluginBase::defaultConfiguration

File

modules/search_api_solr_legacy/src/Plugin/SolrConnector/Solr36Connector.php, line 28

Class

Solr36Connector
Class Solr36Connector.

Namespace

Drupal\search_api_solr_legacy\Plugin\SolrConnector

Code

public function defaultConfiguration() {
  return [
    'scheme' => 'http',
    'host' => '',
    'port' => 8983,
    'path' => '/',
    // Solr 3.6 doesn't have the core name in the path. But solarium 6 needs
    // it. The period is a workaround that gives us URLs like "solr/./select".
    'core' => '.',
    'skip_schema_check' => TRUE,
  ] + parent::defaultConfiguration();
}