search.module

Enables site-wide keyword searching.

File

drupal/core/modules/search/search.module
View source

Functions

Namesort descending Description
search_box Form constructor for the search block's search box.
search_box_form_submit Form submission handler for search_box().
search_comment_delete Implements hook_comment_delete().
search_comment_insert Implements hook_comment_insert().
search_comment_publish Implements hook_comment_publish().
search_comment_unpublish Implements hook_comment_unpublish().
search_comment_update Implements hook_comment_update().
search_cron Implements hook_cron().
search_data Performs a search by calling hook_search_execute().
search_dirty Marks a word as "dirty" (changed), or retrieves the list of dirty words.
search_excerpt Returns snippets from a piece of text, with certain keywords highlighted.
search_expand_cjk Splits CJK (Chinese, Japanese, Korean) text into tokens.
search_expression_extract Extracts a module-specific search option from a search expression.
search_expression_insert Adds a module-specific search option to a search expression.
search_form Form constructor for the search form.
search_forms Implements hook_forms().
search_get_default_module_info Returns information about the default search module.
search_get_info Returns information about available search modules.
search_help Implements hook_help().
search_index Updates the full-text search index for a particular item.
search_index_split Simplifies and splits a string into tokens for indexing.
search_invoke_preprocess Invokes hook_search_preprocess() in modules.
search_is_active Determines access for the 'search' path.
search_menu Implements hook_menu().
search_node_update Implements hook_node_update().
search_node_update_index Implements hook_node_update_index().
search_permission Implements hook_permission().
search_preprocess_block Implements hook_preprocess_HOOK() for block.html.twig.
search_reindex Clears either a part of, or the entire search index.
search_simplify Simplifies a string according to indexing rules.
search_simplify_excerpt_match Finds words in the original text that matched via search_simplify().
search_theme Implements hook_theme().
search_touch_node Changes a node's changed timestamp to 'now' to force reindexing.
search_update_totals Updates the {search_total} database table.
_search_excerpt_match_filter Helper function for array_filter() in search_search_excerpt_match().
_search_excerpt_replace Helper function for array_walk() in search_excerpt().
_search_index_truncate Helper function for array_walk in search_index_split.
_search_menu_access Access callback: Determines access for a search page.

Constants

Namesort descending Description
PREG_CLASS_CJK Matches CJK (Chinese, Japanese, Korean) letter-like characters.
PREG_CLASS_NUMBERS Matches all 'N' Unicode character classes (numbers)
PREG_CLASS_PUNCTUATION Matches all 'P' Unicode character classes (punctuation)