Page 1 of 1

[SOLVED] Can Search module index custom content blocks

Posted: Tue May 01, 2007 8:43 am
by jsmonzani
Solved

----

Hello,

In an attempt to create a multilingual version of a site within the same template, I'm using loads of custom content blocks such as
  {content block="content_fr"}

The Search module doesn't seem to index them, though. Is there a way to do so?

Indexing seems to take place in Search.module.php around line 430

----

Solution

The problem was that words were sticked together by the search module when indexing.
In order to prevent so, I've modified Search.module.php at line 427

instead of appending words without separations
$text .= $v;

I used a space
$text .= $v." ";

... and it works. Don't know if it was a bug :)

Re: [SOLVED] Can Search module index custom content blocks

Posted: Thu Jul 26, 2007 3:47 pm
by baby2boy
hi jsmonzani , i'm using your multilingual script, which i must say works extremely well.

However I too am having problems with the search in that if i'm currently in French (lang=fr) when i search for anything nothing happens and the same page reloads. but if i search for a French word when in English (lang="en") then it finds and lists the search results with no problem but also in the English language format.

Am using it in CMS Made Simple 1.1 Samoa.

Any help would be very much appreciated.

Kind regards
Jon

Re: [SOLVED] Can Search module index custom content blocks

Posted: Thu Jul 26, 2007 4:07 pm
by baby2boy
Just tried something and it returened the following error, not sure if that has something to do with it?

Code: Select all

Warning: Parameter origreturnid is not known... 
dropped in /home/euroboat/public_html/dev/lib/misc.functions.php on line 125

Re: [SOLVED] Can Search module index custom content blocks

Posted: Thu Jul 26, 2007 4:09 pm
by calguy1000
That error is fixed in svn and will be released with the 1.1.1 release due out shortly.

Re: [SOLVED] Can Search module index custom content blocks

Posted: Thu Jul 26, 2007 4:22 pm
by baby2boy
Damn bummer!!

Re: [SOLVED] Can Search module index custom content blocks

Posted: Tue Aug 14, 2007 10:44 pm
by aaronc
calguy, what is the problem causing that error? I'm getting it as well, when a search sends the site to the search page I have assigned. I'd like to fix it myself so that I can get my site rolling.

Additionally, search has stopped indexing my albums, perhaps someone here knows why?

Appreciate the knowledge sharing,

Aaron.