search.module
Version 1.123.2.4 (checked in on 2006/01/05 at 23:12:14 by unconed)
Enables site-wide keyword searching.
Constants
| Name | Description |
|---|---|
| PREG_CLASS_NUMBERS | Matches all 'N' Unicode character classes (numbers) |
| PREG_CLASS_PUNCTUATION | Matches all 'P' Unicode character classes (punctuation) |
| PREG_CLASS_SEARCH_EXCLUDE | Matches Unicode character classes to exclude from the search index. |
Functions
| Name | Description |
|---|---|
| do_search | Do a query on the full-text search index for a word or words. |
| search_admin | Menu callback; displays the search module settings page. |
| search_block | Implementation of hook_block(). |
| search_cron | Implementation of hook_cron(). |
| search_data | Perform a standard search on the given keys, and return the formatted results. |
| 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. |
| search_excerpt | Returns snippets from a piece of text, with certain keywords highlighted. Used for formatting search results. |
| search_form | Render a search form. |
| search_get_keys | Helper function for grabbing search keys. |
| search_help | Implementation of hook_help(). |
| search_index | Update the full-text search index for a particular item. |
| search_keywords_split | Splits a string into component words according to indexing rules. |
| search_keywords_variation | Loosens up a set of search keywords by adding wildcards, if possible. |
| search_menu | Implementation of hook_menu(). |
| search_perm | Implementation of hook_perm(). |
| search_preprocess | Invokes hook_search_preprocess() in modules. |
| search_view | Menu callback; presents the search form and/or search results. |
| search_wipe | Wipes a part of or the entire search index. |
| theme_search_item | Format a single result entry of a search query. |
| _search_excerpt_replace | Helper function for array_walk in search_except. |
| _search_keywords_truncate | Helper function for array_walk in search_keywords_split. |
