search.module

Version

1.123.2.4 (checked in on 2006/01/05 at 23:12:14 by unconed)

Description

Enables site-wide keyword searching.

Constants

Namesort iconDescription
PREG_CLASS_NUMBERSMatches all 'N' Unicode character classes (numbers)
PREG_CLASS_PUNCTUATIONMatches all 'P' Unicode character classes (punctuation)
PREG_CLASS_SEARCH_EXCLUDEMatches Unicode character classes to exclude from the search index.

Functions

Namesort iconDescription
do_searchDo a query on the full-text search index for a word or words.
search_adminMenu callback; displays the search module settings page.
search_blockImplementation of hook_block().
search_cronImplementation of hook_cron().
search_dataPerform a standard search on the given keys, and return the formatted results.
search_dirtyMarks 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.
search_excerptReturns snippets from a piece of text, with certain keywords highlighted. Used for formatting search results.
search_formRender a search form.
search_get_keysHelper function for grabbing search keys.
search_helpImplementation of hook_help().
search_indexUpdate the full-text search index for a particular item.
search_keywords_splitSplits a string into component words according to indexing rules.
search_keywords_variationLoosens up a set of search keywords by adding wildcards, if possible.
search_menuImplementation of hook_menu().
search_permImplementation of hook_perm().
search_preprocessInvokes hook_search_preprocess() in modules.
search_viewMenu callback; presents the search form and/or search results.
search_wipeWipes a part of or the entire search index.
theme_search_itemFormat a single result entry of a search query.
_search_excerpt_replaceHelper function for array_walk in search_except.
_search_keywords_truncateHelper function for array_walk in search_keywords_split.
 
 

Drupal is a registered trademark of Dries Buytaert.