function search_files_update_totals in Search Files 6.2
Same name and namespace in other branches
- 7.2 search_files.module \search_files_update_totals()
search_files_update_totals($type) marks all words of $type dirty, then updates search totals
Parameters
(string) $type:
2 calls to search_files_update_totals()
- search_files_attachments_update_index in ./
search_files_attachments.module - Implementation of hook_update_index().
- search_files_directories_update_index in ./
search_files_directories.module - Implementation of hook_update_index().
File
- ./
search_files.module, line 535 - Used to index files in attachments and directories
Code
function search_files_update_totals($type) {
$result = db_query("SELECT data FROM {search_dataset} WHERE type = '%s'", $type);
while ($obj = db_fetch_object($result)) {
foreach (explode(" ", $obj->data) as $word) {
search_dirty($word);
}
}
search_update_totals();
}