You are here

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

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. 8.2 src/Plugin/search_api/processor/DoubleQuoteWorkaround.php \Drupal\search_api_solr\Plugin\search_api\processor\DoubleQuoteWorkaround::defaultConfiguration()

File

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

Class

DoubleQuoteWorkaround
Replaces double quotes in field values and query.

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;
}