This article explores the process of taking HTML content from Drupal nodes and indexing it for the purpose of search and text retrieval at a later time. The code examples apply to Drupal 6.
Finding what to index
Indexing happens when cron.php is run, and the search module starts the whole process by invoking hook_update_index
. This gives each module the chance to keep its search index needs up to date. This article follows what happens in the node module's ... More