problem with multisearch

12 posts by 4 authors in: Forums > CMS Builder
Last Post: February 23, 2011   (RSS)

By efi-revivo - December 16, 2009 - edited: December 16, 2009

Hi,

I'm use cms v1.36 and I have a problem with multi search on my site.

I download the multiseach.php from the forum and when I try to search I have a problem with one letter only.
My Language is Hebrew and we have 22 letters it's seem to work great but ignore only one letter from the search inbox.
the letter is "נ" (b in English) how can I fix it?

http://www.eilatnight.co.il/multiSearch.php?q=1
you can see that i have this record on my site.

its seem to be working on v1.29

Re: [efi-revivo] problem with multisearch

By Dave - December 17, 2009

Hi efi-revivo,

So is the problem that when you search you are not getting the expected results?

When I search for "b" I get a result:
http://www.eilatnight.co.il/multiSearch.php?q=b

But this one does not give a result:
http://www.eilatnight.co.il/multiSearch.php?q=%D7%A0

Can you add this option and let me know what the output is:
$searchOptions['debugSql'] = "1";

You didn't change the character set on your database did you? (You would know if you did).
Dave Edis - Senior Developer
interactivetools.com

Re: [Dave] problem with multisearch

Hi dave,

my character set on database is unicode

this is the output
SELECT SQL_CALC_FOUND_ROWS * FROM (
SELECT 'design' as `tablename`, num, `title` as `_title`, `small` as `_summary`, '' as `field1`, '' as `field2`, '' as `field3`, '' as `field4`, '' as `field5`, '' as `field6`, '' as `field7`, '' as `field8`, '' as `field9`, '' as `field10`, CONCAT_WS('\t', `title`, `content`, `small`, `city`, `adress`) as _content FROM `cms_design`
) as combinedTable
WHERE (`_content` LIKE '%אפי�%')
AND (`_content` LIKE '%ט%')
LIMIT 10 OFFSET 0

Re: [efi-revivo] problem with multisearch

By Dave - December 17, 2009

Hmm, I'll have to research this more.

Can you send me CMS and FTP login details to dave@interactivetools.com. Note: Email, don't post login details to the forum.

Thanks!
Dave Edis - Senior Developer
interactivetools.com

Re: [Dave] problem with multisearch

ok

Re: [Dave] problem with multisearch

thanks dave it works great new :-)

Re: [efi-revivo] problem with multisearch

By hordak - February 16, 2011 - edited: February 16, 2011

Okay, so what did you do? I am experiencing the same problem. The only fields I can display are the _title & _summary fields. It looks like there's up to 10 fields available.

Re: [hordak] problem with multisearch

By Jason - February 17, 2011

Hi,

Could you please give some background on the kind of problem you're experiencing? If you can attach your .php code and give provide a URL example, that would be helpful.

thanks
---------------------------------------------------
Jason Sauchuk - Project Manager
interactivetools.com

Hire me! Save time by getting our experts to help with your project.
http://www.interactivetools.com/consulting/

Re: [hordak] problem with multisearch

By Jason - February 17, 2011

Hi,

The multi search doesn't return all fields from all the tables being searched, so you can't output all of those fields using it.

I do notice in your code that you are only searching 1 table. In that case, you wouldn't want to use multi search as it is only for search multiple tables. You can use a regular getRecords query and then then output any fields you want.

For some searching options, try here:
http://www.interactivetools.com/docs/cmsbuilder/viewer_search.html

Hope this helps
---------------------------------------------------
Jason Sauchuk - Project Manager
interactivetools.com

Hire me! Save time by getting our experts to help with your project.
http://www.interactivetools.com/consulting/