search_api_rabbit_hole
36 sites
Security covered
Search API can index content but Rabbit Hole can prevent content from being accessed.
This module provides a Search API Processor that prevents indexing of content items that have Rabbit Hole enabled and are using Rabbit Hole's 'Access Denied' or 'Page Not Found' plugins by default (but can be configured to prevent indexing of whichever you want).
Example usage
- Set up Node Articles to use Rabbit Hole
- Set up a Search API Index to index Node Articles
- Create an Article 'An article that should not be found' and set it to 'Access Denied'
Without this module, 'An article that should not be found' will be a result in your Search (but clicking it will still lead to access denied).
With this module enabled and configured 'An article that should not be found' will be excluded from being indexed and appearing as a result.
Post-Installation
- Go to your Search API index -> Processors.
- Enable "Indexing Rabbit Hole Filter"
Additional Requirements
This module only works if you have both Search API and Rabbit Hole enabled.