You are here

public function SearchApiSolrBackend::defaultConfiguration in Search API Solr 8.3

Same name and namespace in other branches
  1. 8 src/Plugin/search_api/backend/SearchApiSolrBackend.php \Drupal\search_api_solr\Plugin\search_api\backend\SearchApiSolrBackend::defaultConfiguration()
  2. 8.2 src/Plugin/search_api/backend/SearchApiSolrBackend.php \Drupal\search_api_solr\Plugin\search_api\backend\SearchApiSolrBackend::defaultConfiguration()
  3. 4.x src/Plugin/search_api/backend/SearchApiSolrBackend.php \Drupal\search_api_solr\Plugin\search_api\backend\SearchApiSolrBackend::defaultConfiguration()

Gets default configuration for this plugin.

Return value

array An associative array with the default configuration.

Overrides ConfigurablePluginBase::defaultConfiguration

File

src/Plugin/search_api/backend/SearchApiSolrBackend.php, line 196

Class

SearchApiSolrBackend
Apache Solr backend for search api.

Namespace

Drupal\search_api_solr\Plugin\search_api\backend

Code

public function defaultConfiguration() {
  return [
    'retrieve_data' => FALSE,
    'highlight_data' => FALSE,
    'skip_schema_check' => FALSE,
    'site_hash' => FALSE,
    'server_prefix' => '',
    'domain' => 'generic',
    'environment' => 'default',
    // Set the default for new servers to NULL to force "safe" un-selected
    // radios. @see https://www.drupal.org/node/2820244
    'connector' => NULL,
    'connector_config' => [],
    'optimize' => FALSE,
    // 10 is Solr's default limit if rows is not set.
    'rows' => 10,
  ];
}