From b6eee48c887e66b195a2b88fe905872af83bbade Mon Sep 17 00:00:00 2001 From: Dries Buytaert Date: Thu, 4 Nov 2004 06:47:03 +0000 Subject: - Patch #12232 by Steven: more search improvements: + When a comment is posted, a node needs to be re-indexed. Luckily, we can use node_comment_statistics for this easily. + When a node is deleted, it should be deleted from the search index as well. + The search wipe didn't properly remove links to nodes from the index. + Section url was faulty in _help. + Minor code rearrangement. --- modules/search.module | 37 ++++++++++++++++++++++++++----------- 1 file changed, 26 insertions(+), 11 deletions(-) (limited to 'modules/search.module') diff --git a/modules/search.module b/modules/search.module index 7bddc7285..27ecb0ba9 100644 --- a/modules/search.module +++ b/modules/search.module @@ -47,8 +47,10 @@ function search_help($section = 'admin/help#search') { switch ($section) { case 'admin/modules#description': return t('Enables site-wide keyword searching.'); - case 'admin/search': - return t('

The search engine works by maintaining an index of words in your site\'s content. You can adjust the settings below to tweak the indexing behaviour. Note that indexing requires cron to be set up correctly.

Changes to these settings will only apply to content that is indexed after the change. If you want them to apply to everything, you need to wipe the index with the button below.

'); + case 'admin/settings/search': + return t(' +

The search engine works by maintaining an index of the words in your site\'s content. You can adjust the settings below to tweak the indexing behaviour. Note that the search requires cron to be set up correctly.

+

Changes to these settings will only apply to content that is indexed after the change. If you want them to apply to everything, you need to wipe the index with the button below.

'); case 'search#noresults': return t('