Search API Exclude Entity
This module allows you to control which entities are indexed by Search API. It adds a field to entities that, when enabled, prevents them from being included in search results. This provides flexibility by allowing configuration per entity type and bundle, and ensures seamless integration with Views.
Introduction
This module is the Drupal 8+ / Search API successor to Apache Solr Node Exclude.
It makes it possible to exclude nodes and other entities from being indexed in
search indexes configured using Search API framework.
Compared to the Drupal 7 / Apache Solr version is the new Drupal 8 version
using a custom field type, widget and formatter for controlling the exclude
status on entities. This gives some advantages:
- The field position, field label and description is configurable per entity * / bundle.
- It is possible to use multiple exclude fields on the same entity bundle, if multiple search systems or indexes is being used in the site.
- Views integration out of the box without custom plugins.
The processing in Search API is handled using a custom configurable processing
plugin.
Requirements
- Search API (https://www.drupal.org/project/search_api)
Installation & Configuration
See the documentation.
Branches
2.0.x is the D9 + D10 only version where most work will be going into.