Kryptronic Software Support Forum

You are viewing this forum as a guest. Login to an existing account, or create a new account, to reply to topics and to create new topics.

#1 10-24-2012 04:30:06

amdowney
Member
From: UK-Warwickshire
Registered: 09-21-2007
Posts: 507
Website

Search function confusion

Good day!

On my site I have products with names like 'essential cctv system' and when just typing in the phrase 'essential system' the AJAX popup suggests the correct products. However when hitting enter to view these in the search results page you get a blank result back?

It's as if when the results page loads it defaults to 'Exact Phrase' although it has 'Any Word' selected as the advanced search type should you want to try again, which would bring up too many irrelevant results if used. How do we set the default search to be 'All Words' on the results page?

Thanks again...

Offline

 

#2 10-24-2012 07:12:42

webmaster
Administrator
From: York, PA
Registered: 04-20-2001
Posts: 19798
Website

Re: Search function confusion

Under System > Displays > Display Includes, edit the 'Skin Widget Mini Store Search' include.  Find:

Code:

$this->xhtml_quickform_header($formid,'ecom','prodsearchp',array());

Change to:

Code:

$this->xhtml_quickform_header($formid,'ecom','prodsearchp',array('ecom--prodsearch--type' => 'ALL'));

Nick Hendler

Offline

 

#3 03-08-2013 06:44:22

amdowney
Member
From: UK-Warwickshire
Registered: 09-21-2007
Posts: 507
Website

Re: Search function confusion

HI Nick,

Could you please take a quick look at this:

If you go to http://www.justmountainbikes.co.uk/ and in the quick search type 'ghost se' or 'ghost se 2013' the ajax list gives you what it should, the Ghost SE bikes only. Even with the search settings above set to ALL when you proceed to the results page, you end up with those models as well as the Ghost Cross and TR bikes, which I can't seem to get rid of or understand why they are appearing in the results?

Even going to advanced search and choosing exact they still show up?

Offline

 

#4 03-08-2013 13:02:16

sppars
Member
Registered: 01-25-2006
Posts: 301

Re: Search function confusion

It looks like it might be because of the keywords. For example, "Ghost TR Lady 1800 Trekking Bike 2013" has the following keywords associated with it: "Ghost SE 1200 Hardtail Bike 2013, Ghost mountain bike, hardtail bike". Hence, why the CCP search would pull them up.

Offline

 

#5 03-08-2013 13:40:26

webmaster
Administrator
From: York, PA
Registered: 04-20-2001
Posts: 19798
Website

Re: Search function confusion

The ajax search searches based on these fields:

id, name, prodnum

The regular search searches based on these fields:

id, name, prodnum, keywords, descshort

To change the fields used by the regular search, edit the $prod_sf array at the top of the prodsearchsql() function in {private}/apps/ecom/ECOM_Prod/ECOM_Prod.php.


Nick Hendler

Offline

 

#6 03-08-2013 16:25:23

amdowney
Member
From: UK-Warwickshire
Registered: 09-21-2007
Posts: 507
Website

Re: Search function confusion

Ah that would make sense then if it searches the keywords, it obviously has the wrong keywords! Thank you..

Offline

 

Board footer