Needs review
Project:
Instant Search
Version:
6.x-1.x-dev
Component:
Code
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
24 Feb 2011 at 13:48 UTC
Updated:
1 Mar 2011 at 16:29 UTC
Jump to comment: Most recent file
Comments
Comment #1
akamaus commentedI looked at the code and saw the actual index update is done on hook_exit only for last node for which hook_nodeapi was triggered. The data is transferred in a global variable $update_node_index.
What's the reason for it? I tried moving _node_index_node call into hook_nodeapi and all works for me now. But it's suspiciously easy to be correct fix. Any ideas?
Comment #2
akamaus commentedI looked at the code path more carefully. my previous solution didn't work correctly, because _node_index_node calls node_load which returns a cached version of node, which is stored in a static variable $nodes.