Make a Module be included in Search

Talk about writing modules and plugins for CMS Made Simple, or about specific core functionality. This board is for PHP programmers that are contributing to CMSMS not for site developers
Post Reply
Russ
Power Poster
Power Poster
Posts: 813
Joined: Fri Nov 25, 2005 5:02 pm
Location: North West England

Make a Module be included in Search

Post 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
RonnyK
Support Guru
Support Guru
Posts: 4962
Joined: Wed Oct 25, 2006 8:29 pm
Location: Raalte, the Netherlands

Re: Make a Module be included in Search

Post by RonnyK »

Did you check pisearch. I know it searches through other modules, I don't know if it searches through all modules.

Ronny
cyberman

Re: Make a Module be included in Search

Post by cyberman »

RonnyK wrote: I don't know if it searches through all modules.
Think it searches inside all visible content ...
Russ
Power Poster
Power Poster
Posts: 813
Joined: Fri Nov 25, 2005 5:02 pm
Location: North West England

Re: Make a Module be included in Search

Post by Russ »

Thanks cyberman, I'd forgotten about pisearch.

Russ
Russ
Power Poster
Power Poster
Posts: 813
Joined: Fri Nov 25, 2005 5:02 pm
Location: North West England

Re: Make a Module be included in Search

Post 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?
Post Reply

Return to “Developers Discussion”