What is the easiest way to index (for the search index) 70,000 nodes?

144 views Asked by At

What's the easiest way to index (for the search index) 70.000 nodes in Drupal ?

I'm running cron every 3 minutes (500 nodes per run) but it doesn't seem to be that fast.

Thanks

2

There are 2 answers

1
Jesper Wøldiche On BEST ANSWER

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.

0
Nikit On

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);
  }