What is the easiest way to index (for the search index) 70,000 nodes?
What's the easiest way to index (for the search index) 70.000 nodes in Drup开发者_如何转开发al ?
I'm running cron every 3 minutes (500 nodes per run) but it doesn't seem to be that fast.
Thanks
For that amount of nodes I would go for another search solution, than the one built into drupal core.
Without knowing anything about your content, I would suggest you take a look at Apache Solr for Drupal.
The Drupal Apache Solr module is well tested and maintained.
An added benefit would be better search results than what drupal core search can provide.
You can do manually it by creating php code (in node (be carefull)! or in php-file with including bootstrapping), and before running script set maximum time for php."max_execution_time" or use set_time_limit(XXX) in cycle:
$result = db_query('SELECT nid from {node} WHERE /*..HERE IS YOUR CONDITION..*/');
while ($node = db_fetch_object($result)) {
_node_index_node($node);
}
精彩评论