You are here

public function Stopwords::defaultConfiguration in Search API 8

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/Stopwords.php, line 42

Class

Stopwords
Allows you to define stopwords which will be ignored in searches.

Namespace

Drupal\search_api\Plugin\search_api\processor

Code

public function defaultConfiguration() {
  $configuration = parent::defaultConfiguration();
  $configuration += [
    'stopwords' => [
      'a',
      'an',
      'and',
      'are',
      'as',
      'at',
      'be',
      'but',
      'by',
      'for',
      'if',
      'in',
      'into',
      'is',
      'it',
      'no',
      'not',
      'of',
      'on',
      'or',
      's',
      'such',
      't',
      'that',
      'the',
      'their',
      'then',
      'there',
      'these',
      'they',
      'this',
      'to',
      'was',
      'will',
      'with',
    ],
  ];
  return $configuration;
}