You are here

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

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

File

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

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,
    '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,
    'fallback_multiple' => FALSE,
    // 10 is Solr's default limit if rows is not set.
    'rows' => 10,
    'index_single_documents_fallback_count' => 10,
  ];
}