Main
Index
Search
Posts
Who's
Online
Log
In

Home: Products: CMS Builder:
multiSearch.php Question

 

 


northernpenguin
User

Dec 31, 2010, 4:52 AM

Post #1 of 8 (743 views)
Shortcut
multiSearch.php Question Can't Post

Hi

I tried using the multiSearch.php file referenced in the CMSB Tutorial thread, and it works well with v2.05. However, I do have a question. The current search is case sensitive. Is there anyway to make the search case insensitive?

Thanx.......... Ragi
--
northernpenguin
Northern Penguin Technologies

"Any sufficiently advanced technology
is indistinguishable from magic."
........Arthur C. Clarke


Jason
Staff / Moderator


Jan 3, 2011, 11:59 AM

Post #2 of 8 (723 views)
Shortcut
Re: [northernpenguin] multiSearch.php Question [In reply to] Can't Post

Hi,

I've done some testing with the script and the search doesn't seem to be case sensitive. Could you provide me with an example url where you are getting case sensitive results?

Thanks.
---------------------------------------------------
Jason Sauchuk - Programmer 
interactivetools.com

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


yusuke
User

Apr 21, 2011, 8:57 PM

Post #3 of 8 (634 views)
Shortcut
Re: [Jason] multiSearch.php Question [In reply to] Can't Post

Hi

I am using multiSearch.php and it's GREAT!Smile Loving it!

I am currently facing one problem -- entering "space" using Japanese character as search keywords. In Japanese character there are two ways (kinds) of entering "space" which gives different search results.
Would it be possible to treat these two different spaces the same so search results are the same?

I am entering two kinds of "space" below
Note: They are "space"s therefore invisible.

A) This is called "Hankaku space" inside the quote --> " "

B) This is called "Zenkaku space": --> "@"

Please advise


robin
User / Moderator


Apr 25, 2011, 10:46 AM

Post #4 of 8 (623 views)
Shortcut
Re: [yusuke] multiSearch.php Question [In reply to] Can't Post

Hey,

We'll look into some sort of option for that for the future. In the meantime, this function might be useful for you:

http://php.net/manual/en/function.mb-convert-kana.php

In multisearch.php something like:

Code
$searchOptions['keywords'] = @mb_convert_kana($FORM['q'],'s')


Hope that helps,
Robin


zip222
User

Nov 21, 2011, 8:27 AM

Post #5 of 8 (501 views)
Shortcut
Re: [Jason] multiSearch.php Question [In reply to] Can't Post

I am experiencing the case sensitive issue as well. If you go here...

[removed]

and search for "design tips" vs. "Design Tips" you get a different set of results.


(This post was edited by zip222 on Jan 13, 2012, 8:46 AM)


Jason
Staff / Moderator


Nov 21, 2011, 9:36 AM

Post #6 of 8 (499 views)
Shortcut
Re: [zip222] multiSearch.php Question [In reply to] Can't Post

Hi,

Could you attach the .php file you're working with so we can take a closer look at your code?

Thanks
---------------------------------------------------
Jason Sauchuk - Programmer 
interactivetools.com

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


zip222
User

Nov 23, 2011, 11:43 AM

Post #7 of 8 (472 views)
Shortcut
Re: [Jason] multiSearch.php Question [In reply to] Can't Post

File attached. Thanks.
Attachments: search-page.php (7.84 KB)


Jason
Staff / Moderator


Nov 24, 2011, 11:14 AM

Post #8 of 8 (437 views)
Shortcut
Re: [zip222] multiSearch.php Question [In reply to] Can't Post

Hi,

Could you please fill out a 2nd Level Support Request so we can take a closer look at what is happening with this script.

Thanks
---------------------------------------------------
Jason Sauchuk - Programmer 
interactivetools.com

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