You are here

protected function SearchApiSolrMultilingualBackend::tweakFilterConfig in Apache Solr Multilingual 8

(temporarily) apply tweaks to the config until Solr's Managed* classes support all parameters

Parameters

array $filters The filters to act upon.:

1 call to SearchApiSolrMultilingualBackend::tweakFilterConfig()
SearchApiSolrMultilingualBackend::createSolrMultilingualFieldType in src/Plugin/search_api/backend/SearchApiSolrMultilingualBackend.php

File

src/Plugin/search_api/backend/SearchApiSolrMultilingualBackend.php, line 317
Contains \Drupal\as_search\Plugin\search_api\backend\ASSearchApiSolrBackend.

Class

SearchApiSolrMultilingualBackend
Plugin annotation @SearchApiBackend( id = "search_api_solr_multilingual", label = @Translation("Solr Multilingual"), description = @Translation("Index items using an Apache Solr Multilingual search server.") )

Namespace

Drupal\apachesolr_multilingual\Plugin\search_api\backend

Code

protected function tweakFilterConfig(&$filters) {
  foreach ($filters as &$filter) {
    if ($filter['class'] == 'solr.ManagedSynonymFilterFactory') {
      unset($filter['expand']);
      unset($filter['ignoreCase']);
    }
    if ($filter['class'] == 'solr.ManagedStopFilterFactory') {
      unset($filter['ignoreCase']);
    }
  }
}