search.module

Version 1.371 (checked in on 2011/01/04 at 05:31:09 by webchick)

Enables site-wide keyword searching.

Constants

NameDescription
PREG_CLASS_CJKMatches CJK (Chinese, Japanese, Korean) letter-like characters.
PREG_CLASS_NUMBERSMatches all 'N' Unicode character classes (numbers)
PREG_CLASS_PUNCTUATIONMatches all 'P' Unicode character classes (punctuation)

Functions & methods

NameDescription
search_block_infoImplements hook_block_info().
search_block_viewImplements hook_block_view().
search_boxForm builder; Output a search form for the search block's search box.
search_box_form_submitProcess a block search form submission.
search_comment_deleteImplements hook_comment_delete().
search_comment_insertImplements hook_comment_insert().
search_comment_publishImplements hook_comment_publish().
search_comment_unpublishImplements hook_comment_unpublish().
search_comment_updateImplements hook_comment_update().
search_cronImplements hook_cron().
search_dataPerforms a search by calling hook_search_execute().
search_dirtyMarks a word as "dirty" (changed), or retrieves the list of dirty words.
search_excerptReturns snippets from a piece of text, with certain keywords highlighted. Used for formatting search results.
search_expand_cjkSplits CJK (Chinese, Japanese, Korean) text into tokens.
search_expression_extractExtracts a module-specific search option from a search expression.
search_expression_insertAdds a module-specific search option to a search expression.
search_formBuilds a search form.
search_formsImplements hook_forms().
search_get_default_module_infoReturns information about the default search module.
search_get_infoReturns information about available search modules.
search_helpImplements hook_help().
search_indexUpdate the full-text search index for a particular item.
search_index_splitSimplifies and splits a string into tokens for indexing.
search_invoke_preprocessInvokes hook_search_preprocess() in modules.
search_is_activeDetermines access for the ?q=search path.
search_menuImplements hook_menu().
search_node_updateImplements hook_node_update().
search_node_update_indexImplements hook_node_update_index().
search_permissionImplements hook_permission().
search_reindexClears a part of or the entire search index.
search_simplifySimplifies a string according to indexing rules.
search_simplify_excerpt_matchFind words in the original text that matched via search_simplify().
search_themeImplements hook_theme().
search_touch_nodeChanges a node's changed timestamp to 'now' to force reindexing.
search_update_totalsUpdates the {search_total} database table.
template_preprocess_search_block_formProcess variables for search-block-form.tpl.php.
_search_excerpt_match_filterHelper function for array_filter() in search_search_excerpt_match().
_search_excerpt_replaceHelper function for array_walk() in search_excerpt().
_search_index_truncateHelper function for array_walk in search_index_split.
_search_menu_accessAccess callback for search tabs.