Search module only displays 100%

For questions and problems with the CMS core. This board is NOT for any 3rd party modules, addons, PHP scripts or anything NOT distributed with the CMS made simple package itself.
Locked
marvanni

Search module only displays 100%

Post by marvanni »

When I insert a searchword like animal, the module only displays results with pages that contain animal.

But I also want words linke animalfarm is in the search results.

I think it is in this query:

Code: Select all

$query = "SELECT DISTINCT i.module_name, i.content_id, i.extra_attr, COUNT(*) AS nb, SUM(idx.count) AS total_weight FROM ".cms_db_prefix()."module_search_items i INNER JOIN ".cms_db_prefix()."module_search_index idx ON idx.item_id = i.id WHERE (".$searchphrase.") AND  (".$db->IfNull('i.expires',$db->DBTimeStamp(100 * 100 * 100 * 100 * 25))." > ".$db->DBTimeStamp(time()).") ";
I replaced WHERE into LIKE, but that doen's work.

How can I make the module searches less rigourous and also returns words that contain the searchstring?
Last edited by marvanni on Wed Aug 29, 2007 9:01 am, edited 1 time in total.
RonnyK
Support Guru
Support Guru
Posts: 4962
Joined: Wed Oct 25, 2006 8:29 pm

Re: Search module only displays 100%

Post by RonnyK »

You might want to try pisearch instead,

http://dev.cmsmadesimple.org/projects/modpisearch/

Ronny
marvanni

Re: Search module only displays 100%

Post by marvanni »

Hm, thanks,

but none of them seem to install with version 1.0.5...
Locked

Return to “CMSMS Core”