You are here

public function SolrConnectorPluginBase::defaultConfiguration in Search API Solr 8.2

Same name and namespace in other branches
  1. 8.3 src/SolrConnector/SolrConnectorPluginBase.php \Drupal\search_api_solr\SolrConnector\SolrConnectorPluginBase::defaultConfiguration()
  2. 8 src/SolrConnector/SolrConnectorPluginBase.php \Drupal\search_api_solr\SolrConnector\SolrConnectorPluginBase::defaultConfiguration()
  3. 4.x src/SolrConnector/SolrConnectorPluginBase.php \Drupal\search_api_solr\SolrConnector\SolrConnectorPluginBase::defaultConfiguration()

Gets default configuration for this plugin.

Return value

array An associative array with the default configuration.

Overrides ConfigurablePluginBase::defaultConfiguration

File

src/SolrConnector/SolrConnectorPluginBase.php, line 86

Class

SolrConnectorPluginBase
Defines a base class for Solr connector plugins.

Namespace

Drupal\search_api_solr\SolrConnector

Code

public function defaultConfiguration() {
  return [
    'scheme' => 'http',
    'host' => 'localhost',
    'port' => '8983',
    'path' => '/solr',
    'core' => '',
    'timeout' => 5,
    'index_timeout' => 5,
    'optimize_timeout' => 10,
    'finalize_timeout' => 30,
    'solr_version' => '',
    'http_method' => 'AUTO',
    'commit_within' => 1000,
    'jmx' => FALSE,
  ];
}