Search API exclude

Component ID

1940760

Component name

Search API exclude

Component type

module

Maintenance status

Development status

Component security advisory coverage

covered

Downloads

9615

Component created

Component changed

Component body

Exclude nodes from indexing by Search API with the hook hook_search_api_query_alter().

Use case

If you want to exclude nodes from Search API results.

How to install

  • Install and configure Search API
  • Install Search API exclude (this module)
  • Each node type have settings for enable them to have option to not be indexed (admin/structure/types/manage/[node type]) - field tab - Search api exclude.
  • When the node type is enabled to could be excluded, edit a node and choose to exclude it.
  • When you search (using search api), the node should not be in the results.