Any and all non-support discussions
Moderators: gerski, enjay, williamconley, Op3r, Staydog, gardo, mflorell, MJCoate, mcargile, Kumba, Michael_N
by fibres » Thu Oct 01, 2015 7:14 pm
Hi Guys
I am wondering if there is a way to change the lead search behaviour to allow wildcards? Or put them in by default?
We are using the Last Name field for company name on a customer installation and the need to be able to put say 'vicidial' in the search box and have it come up with and companies with vicidial anywhere in the name.
Vicibox 4.0.3 ISO install.
VERSION: 2.6-393a
BUILD: 130124-1721
Astersik 1.4.44-vici
No Hardware
No other software installed
-
fibres
-
- Posts: 313
- Joined: Sun May 20, 2007 3:12 pm
- Location: UK
by mflorell » Fri Oct 02, 2015 4:45 am
Last Name is already a horrible field to search by, adding in wildcards would just make the search slower and lock the system for several seconds for every search. Sure it would be possible to add this, but noone has contributed or paid for such a feature at this time.
-
mflorell
- Site Admin
-
- Posts: 18387
- Joined: Wed Jun 07, 2006 2:45 pm
- Location: Florida
-
by fibres » Fri Oct 02, 2015 10:41 am
Ok. Is it not as simple as just adding %searchstring% to the sql query? I have tried adding the % into the search box but doesnt seem to work.
Ill have a look at the code in a bit. This is a system that is never going to have more than 100k or so leads in it and is a manual dial system with <10 agents.
Vicibox 4.0.3 ISO install.
VERSION: 2.6-393a
BUILD: 130124-1721
Astersik 1.4.44-vici
No Hardware
No other software installed
-
fibres
-
- Posts: 313
- Joined: Sun May 20, 2007 3:12 pm
- Location: UK
by mflorell » Fri Oct 02, 2015 1:15 pm
You would have to change the SQL around it from using = to using LIKE for that to work, and you would have to do it conditionally depending on the wildcard character being present or not.
-
mflorell
- Site Admin
-
- Posts: 18387
- Joined: Wed Jun 07, 2006 2:45 pm
- Location: Florida
-
by fibres » Fri Oct 02, 2015 4:49 pm
Is the SQL query in the main agc/vicidial.php or is it in a function somewhere?
Vicibox 4.0.3 ISO install.
VERSION: 2.6-393a
BUILD: 130124-1721
Astersik 1.4.44-vici
No Hardware
No other software installed
-
fibres
-
- Posts: 313
- Joined: Sun May 20, 2007 3:12 pm
- Location: UK
by fibres » Fri Oct 02, 2015 6:50 pm
Ah no found it.
Changine the = to like has made this work. Will be interesting to see what performance on searches is like on the system with more than the 3 leads I have on my test system!
Ill report back what its like.
Vicibox 4.0.3 ISO install.
VERSION: 2.6-393a
BUILD: 130124-1721
Astersik 1.4.44-vici
No Hardware
No other software installed
-
fibres
-
- Posts: 313
- Joined: Sun May 20, 2007 3:12 pm
- Location: UK
Return to General Discussion
Who is online
Users browsing this forum: Majestic-12 [Bot] and 43 guests