You are here

public function DoubleQuoteWorkaround::defaultConfiguration in Search API Solr 8.2

Same name and namespace in other branches
  1. 8.3 src/Plugin/search_api/processor/DoubleQuoteWorkaround.php \Drupal\search_api_solr\Plugin\search_api\processor\DoubleQuoteWorkaround::defaultConfiguration()
  2. 4.x src/Plugin/search_api/processor/DoubleQuoteWorkaround.php \Drupal\search_api_solr\Plugin\search_api\processor\DoubleQuoteWorkaround::defaultConfiguration()

Gets default configuration for this plugin.

Return value

array An associative array with the default configuration.

Overrides FieldsProcessorPluginBase::defaultConfiguration

File

src/Plugin/search_api/processor/DoubleQuoteWorkaround.php, line 34

Class

DoubleQuoteWorkaround
Replaces double quotes in field values and query to work around a bug in Solr streaming expressions.

Namespace

Drupal\search_api_solr\Plugin\search_api\processor

Code

public function defaultConfiguration() {
  $configuration = parent::defaultConfiguration();
  $configuration += [
    // The replacement for a double quote in the input string.
    'replacement' => '|9999999998|',
  ];
  return $configuration;
}