Modifying Simple Search Logic
-
- Commander (CMDR)
- Posts: 118
- Joined: Sat Dec 20, 2008 11:27 pm
Modifying Simple Search Logic
I've read just about all the posts I could find on here, and it seems that I need the source code to modify the search logic. Is this correct? What I am trying to accomplish is that I notice in Google Analytics that many customers search "tables" or "sideboards," etc. on our site, and nothing will return because the title and descriptions in these items typically only contain the word in singular. Short of modifying all listings to include the plural, I would like to modify the Simple Search logic so that if a customer searches for "sidebaords" and no specific items actually match that, it would return the associated category. For SEO purposes, we typically have a wide-range of search terms in the category description field, and this would help the customer find what they were looking for if we could return a suggested category to them. Does anyone know how to modify Simple Search to search the category description field and return the category name (and icon/thumbnail) if the search matches? Thanks!
- jmestep
- AbleCommerce Angel
- Posts: 8164
- Joined: Sun Feb 29, 2004 8:04 pm
- Location: Dayton, OH
- Contact:
Re: Modifying Simple Search Logic
Do you have full text search turned on? I think it searches description 7.0.6, but the full text search on 7.0.7 is even better. Without that you could try a few of things:
Change the simple search to pull using the Advanced Search method.
Add the keywords with no results to product keyword fields.
Put code on the page to substitute search terms with what brings results.
Change the simple search to pull using the Advanced Search method.
Add the keywords with no results to product keyword fields.
Put code on the page to substitute search terms with what brings results.
Judy Estep
Web Developer
jestep@web2market.com
http://www.web2market.com
708-653-3100 x209
New search report plugin for business intelligence:
http://www.web2market.com/Search-Report ... -P154.aspx
Web Developer
jestep@web2market.com
http://www.web2market.com
708-653-3100 x209
New search report plugin for business intelligence:
http://www.web2market.com/Search-Report ... -P154.aspx
-
- Commander (CMDR)
- Posts: 118
- Joined: Sat Dec 20, 2008 11:27 pm
Re: Modifying Simple Search Logic
Where is the code? I don't see it in the regular cs files, so I'm thinking it's in the DLL. I don't have the source code option, but I can get it if need be. Thanks!
- jmestep
- AbleCommerce Angel
- Posts: 8164
- Joined: Sun Feb 29, 2004 8:04 pm
- Location: Dayton, OH
- Contact:
Re: Modifying Simple Search Logic
It is in the SearchPage.ascx.cs and the advanced search is in AdvancedSearchPage.ascx.cs
Judy Estep
Web Developer
jestep@web2market.com
http://www.web2market.com
708-653-3100 x209
New search report plugin for business intelligence:
http://www.web2market.com/Search-Report ... -P154.aspx
Web Developer
jestep@web2market.com
http://www.web2market.com
708-653-3100 x209
New search report plugin for business intelligence:
http://www.web2market.com/Search-Report ... -P154.aspx
-
- Commander (CMDR)
- Posts: 118
- Joined: Sat Dec 20, 2008 11:27 pm
Re: Modifying Simple Search Logic
Thanks, Judy. I ended up taking a different approach, which I think will be better. I just added search keywords into our product database for all the variances I needed and used those to automatically populate ac_Products.SearchKeywords. I then installed Plugables module SearchAutoComplete in place of SimpleSearch and populated the table provided with the same SearchKeywords. Everything is updated dynamically, based on the products online at any one time, and it works awesome!