If a content type has additional text fields, search core automatically indexes them because search core extracts all text from the result of node_view()
I can easily add extra index data via MODULE_node_update_index( $node )
. This particular hook argument, $node
, is passed by value and not by reference which means I can't unset certain items.
I hook into node_view
, and alter it there but I don't want to change the output of the node normally, only when it's being indexed.