diff --git a/config/schema/search_api.views.schema.yml b/config/schema/search_api.views.schema.yml index da2089b..6cc8072 100644 --- a/config/schema/search_api.views.schema.yml +++ b/config/schema/search_api.views.schema.yml @@ -158,7 +158,7 @@ views.filter.search_api_fulltext: label: Field name views.filter.search_api_language: - type: views.filter.search_api_options + type: views.filter.language label: 'Search API language' views.filter.search_api_numeric: diff --git a/search_api_db/search_api_db_defaults/config/optional/search_api.index.default_index.yml b/search_api_db/search_api_db_defaults/config/optional/search_api.index.default_index.yml index 7539dff..45c6888 100644 --- a/search_api_db/search_api_db_defaults/config/optional/search_api.index.default_index.yml +++ b/search_api_db/search_api_db_defaults/config/optional/search_api.index.default_index.yml @@ -3,12 +3,6 @@ name: 'Default content index' description: 'Default content index created by the Database Search Defaults module' read_only: false field_settings: - search_api_language: - label: 'Item language' - type: string - property_path: search_api_language - index_locked: true - type_locked: true title: label: Title type: text diff --git a/src/Plugin/search_api/processor/ContentAccess.php b/src/Plugin/search_api/processor/ContentAccess.php index ba74dd3..7926aa4 100644 --- a/src/Plugin/search_api/processor/ContentAccess.php +++ b/src/Plugin/search_api/processor/ContentAccess.php @@ -288,8 +288,6 @@ protected function addNodeAccess(QueryInterface $query, AccountInterface $accoun // not return any results at all. if (!$unaffected_datasources) { // @todo More elegant way to return no results? - // @todo Now that field IDs can be picked freely, this can theoretically - // even fail! Needs to be fixed! $query->addCondition('search_api_language', ''); } return;