The node module of Drupal core is calling node_reindex_node_search() in \Drupal\node\Entity\Node::postSave() but that only triggers re-indexing of nodes that have been index by the node_search plugin. All the nodes that have been indexed by the search_exclude_node_search plugin will never be re-index when nodes get changed. I will be submitting a patch to fic this in a minute.
| Comment | File | Size | Author |
|---|---|---|---|
| #2 | 2925505-2.search_exclude.Reindexing-changed-nodes-is-not-triggered.patch | 3.33 KB | jurgenhaas |
Comments
Comment #2
jurgenhaasThis patch triggers a re-index for all active search_exclude_node_search plugins when either a node has been updated or a comment for a node was added, changed or deleted. This is similar to what the core node module is doing as well.
Comment #3
danielvezaHappy to mark this as RTBC. Just applied and tested. Lets get this in!
Comment #5
danielvezaAltered the comments slightly and added some typehints. Thanks for the patch!