search.module

Enables site-wide keyword searching.

File

core/modules/search/search.module

Functions

Name Description
search_cron Implements hook_cron().
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 search keywords highlighted.
search_expand_cjk Splits CJK (Chinese, Japanese, Korean) text into tokens.
search_form_search_block_form_alter Implements hook_form_FORM_ID_alter() for the search_block_form form.
search_help Implements hook_help().
search_index Updates the full-text search index for a particular item.
search_index_clear Clears either a part of, or the entire search index.
search_index_split Simplifies and splits a string into words for indexing.
search_invoke_preprocess Invokes hook_search_preprocess() to simplify text.
search_mark_for_reindex Changes the timestamp on indexed items to 'now' to force reindexing.
search_preprocess_block Implements hook_preprocess_HOOK() for block templates.
search_simplify Simplifies and preprocesses text for searching.
search_theme Implements hook_theme().
search_update_totals Updates the {search_total} database table.
_search_find_match_with_simplify Finds an appropriate keyword in text.
_search_index_truncate Helper function for array_walk in search_index_split.

Constants

Name 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)

© 2001–2016 by the original authors
Licensed under the GNU General Public License, version 2 and later.
Drupal is a registered trademark of Dries Buytaert.
https://api.drupal.org/api/drupal/core!modules!search!search.module/8.1.x