Page 1 of 1
Make a Module be included in Search
Posted: Mon Sep 10, 2007 11:26 am
by Russ
Is there any documentation on altering a module so that it can be searched? I need to get the Calendar module searchable using the standard search.
Presumably there is some sort of registering and then various elements to be added to the module? But I cannot see much information on how to do it? Does anybody have anything more?
Russ
Re: Make a Module be included in Search
Posted: Mon Sep 10, 2007 11:28 am
by RonnyK
Did you check pisearch. I know it searches through other modules, I don't know if it searches through all modules.
Ronny
Re: Make a Module be included in Search
Posted: Mon Sep 10, 2007 12:18 pm
by cyberman
RonnyK wrote:
I don't know if it searches through all modules.
Think it searches inside all visible content ...
Re: Make a Module be included in Search
Posted: Mon Sep 10, 2007 2:58 pm
by Russ
Thanks cyberman, I'd forgotten about pisearch.
Russ
Re: Make a Module be included in Search
Posted: Mon Sep 10, 2007 5:11 pm
by Russ
However, there seems to be some problems with pisearch - at least in my setup - just to make sure it is not just me...
1. When I try to search for something like 'year' I get a failure in the pisearch.module.php and half a page generated. Some searches work, but other seem to fail - mostly single phrases. I'm on 1.1.2 and pisearch 1.8.2
Errors from http log
Code: Select all
[Mon Sep 10 17:23:16 2007] [error] PHP Fatal error: Maximum execution time of 30 seconds exceeded in /Library/WebServer/Documents/cmstest/modules/Pisearch/pisearch.module.php on line 491
[Mon Sep 10 17:26:39 2007] [error] PHP Fatal error: Maximum execution time of 30 seconds exceeded in /Library/WebServer/Documents/cmstest/modules/Pisearch/pisearch.module.php on line 492
[Mon Sep 10 17:29:08 2007] [error] PHP Fatal error: Maximum execution time of 30 seconds exceeded in /Library/WebServer/Documents/cmstest/modules/Pisearch/pisearch.module.php on line 492
[Mon Sep 10 17:49:26 2007] [error] PHP Fatal error: Maximum execution time of 30 seconds exceeded in /Library/WebServer/Documents/cmstest/modules/Pisearch/pisearch.module.php on line 517
[Mon Sep 10 17:50:35 2007] [error] PHP Fatal error: Maximum execution time of 30 seconds exceeded in /Library/WebServer/Documents/cmstest/modules/Pisearch/pisearch.module.php on line 516
[Mon Sep 10 17:52:46 2007] [error] PHP Fatal error: Maximum execution time of 30 seconds exceeded in /Library/WebServer/Documents/cmstest/modules/Pisearch/pisearch.module.php on line 491
[Mon Sep 10 18:03:59 2007] [error] PHP Fatal error: Maximum execution time of 30 seconds exceeded in /Library/WebServer/Documents/cmstest/modules/Pisearch/pisearch.module.php on line 49
Anybody have the same problems or any ideas on how to fix?
2. When Is search for terms which appear more than once on a page - I can get more than one item pointing to the same page in the results. Is this normal - I would expect one entry for each page? Or is it because of the text length?