Same name and namespace in other branches
  1. 4.6.x modules/search.module \search_dirty()
  2. 4.7.x modules/search.module \search_dirty()
  3. 5.x modules/search/search.module \search_dirty()
  4. 7.x modules/search/search.module \search_dirty()
  5. 8.9.x core/modules/search/search.module \search_dirty()

Marks a word as dirty (or retrieves the list of dirty words). This is used during indexing (cron). Words which are dirty have outdated total counts in the search_total table, and need to be recounted.

1 call to search_dirty()
search_index in modules/search/search.module
Update the full-text search index for a particular item.

File

modules/search/search.module, line 249
Enables site-wide keyword searching.

Code

function search_dirty($word = NULL) {
  static $dirty = array();
  if ($word !== NULL) {
    $dirty[$word] = TRUE;
  }
  else {
    return $dirty;
  }
}