#173 users list - free search

15 years 3 months ago #83327 by nzimas
#173 users list - free search was created by nzimas
By default CB seems to search users in exact phrase mode.
For instance, in oder to retrieve "User A", i have to input this exact string in oder to get a match. If i type only a fraction of the string, nothing shows up.
This behaviour renders the searching facility nearly useless, i think.

Am i overlooking any backend parameter?

Thanks,
Nuno.

Post edited by: beat, at: 2009/01/22 15:43

Professional Website: www.bittingbits.com

Please Log in to join the conversation.

15 years 3 months ago #83417 by krileon
Replied by krileon on topic Re:users list - free search
Simple search uses "is" for searches rather then "like". For the searching you desire change your search type for your list to advanced.


Kyle (Krileon)
Community Builder Team Member
Before posting on forums: Read FAQ thoroughly + Read our Documentation + Search the forums
CB links: Documentation - Localization - CB Quickstart - CB Paid Subscriptions - Add-Ons - Forge
--
If you are a Professional, Developer, or CB Paid Subscriptions subscriber and have a support issue please always post in your respective support forums for best results!
--
If I've missed your support post with a delay of 3 days or greater and are a Professional, Developer, or CBSubs subscriber please send me a private message with your thread and will reply when possible!
--
Please note I am available Monday - Friday from 8:00 AM CST to 4:00 PM CST. I am away on weekends (Saturday and Sunday) and if I've missed your post on or before a weekend after business hours please wait for the next following business day (Monday) and will get to your issue as soon as possible, thank you.
--
My role here is to provide guidance and assistance. I cannot provide custom code for each custom requirement. Please do not inquire me about custom development.

Please Log in to join the conversation.

15 years 3 months ago #83449 by nzimas
Replied by nzimas on topic Re:users list - free search
krileon wrote:

Simple search uses "is" for searches rather then "like". For the searching you desire change your search type for your list to advanced.


Do i live the textarea blank?
No need to input a query?

Thanks.

[EDIT]

Got it now :)

Post edited by: nzimas, at: 2008/12/26 20:46

Professional Website: www.bittingbits.com

Please Log in to join the conversation.

15 years 2 months ago #85080 by nzimas
Replied by nzimas on topic Re:users list - free search
Phew... this "all or nothing" approach is impractical, if not downright insane.

In my opinion, the "LIKE" operator should be the default one in the simple search mode.
"IS" does not yield any useful results and the advanced search mode is way too feature rich for the average Jo to understand it.
We had a couple of customers whining over this already.

Professional Website: www.bittingbits.com

Please Log in to join the conversation.

15 years 2 months ago #85237 by beubeu2k
Replied by beubeu2k on topic Re:users list - free search
I had the same problem...
After hours of looking, I think I have a solution.

It's in the file :
administrator\components\com_comprofiler\plugin.class.php

It's in the function :
bindSearchCriteria in line 1062.

I change :
[code:1]
$sql->operator = '=';
$sql->value = $value;
[/code:1]

with :
[code:1]
$sql->operator = 'LIKE';
$sql->value = '%'. $value .'%';
[/code:1]

Seems Working ...
The following user(s) said Thank You: AlanJones

Please Log in to join the conversation.

15 years 2 months ago #85253 by nzimas
Replied by nzimas on topic Re:users list - free search
Thanks a lot for the patch.
I don't like hacking code, but in this particular case it comes in handy.

Hope the stable 1.2 version takes this detail into account. We should be able to choose which operator to use in the simple search mode.

Professional Website: www.bittingbits.com

Please Log in to join the conversation.

Moderators: beatnantkrileon
Time to create page: 0.290 seconds

Facebook Twitter LinkedIn