![Announcement icon Announcement icon](https://www.drupal.org/files/styles/grid-2-2x-square/public/announcements/drupal-evergreen-logo-280X280px%20%281%29_0.jpg?itok=PHpn6rCb)
This is a hook that was curiously absent up until now. Even though items probably shouldn't be rejected by a hook, but rather by a data alteration, module might want to at least be informed when items are indexed.
Also, e.g., a module that will automatically (or optionally) prevent all unpublished nodes from being indexed would certainly have it's practical usages (as adding such a data alterations for several node indexes (if there are more) might be unnecessary work).
So, now there is the hook and people can start shooting themselves in the foot with it, if they insist. ;)
Comments