Active
Project:
Instant Search
Version:
6.x-1.x-dev
Component:
Code
Priority:
Normal
Category:
Feature request
Assigned:
Unassigned
Reporter:
Created:
5 Jan 2009 at 08:08 UTC
Updated:
12 Feb 2009 at 07:07 UTC
Hi, I am using apache solr as the main search, with core searches disabling content and user searches.
Under this configuration, _node_index_node is not a valid function to call, since coresearches'd patched it away from node.module.
A quick modification I did to the function instant_search_exit() to make it work under this config, instead of calling _node_index_node($update_node_index), use
// _node_index_node($update_node_index);
foreach (module_list() as $module) {
module_invoke($module, 'update_index');
}
It works with solr indexing every node as it is created. Since I am a newbie in drupal, can someone verify that there is no ill effect and it doesn't break anything?
Cheers
Gary
Comments
Comment #1
davyvdb commentedHi Gary, the problem with your function is it will get the next few nodes that are not indexed yet when it gets to node_update_index
You're not sure then your node is one of those.