Partial Word Search not working

For general questions and discussions specific to the AbleCommerce 7.0 Asp.Net product.
Post Reply
brianpw
Ensign (ENS)
Ensign (ENS)
Posts: 4
Joined: Mon Oct 31, 2011 3:29 pm

Partial Word Search not working

Post by brianpw » Thu Mar 22, 2012 11:41 am

We have implemented able commerce for a store site v7.x and are experiencing some issues with search. Specifically, we are getting strange results with partial word search in relation to the SKU numbers. This is for the search from the main site (not admin)

For example, if we enter a product with model "55LK520":
1) search for "55LK520" search returns the product as expected.
2) search on "55LK" the product still comes back in search.
3) search on "LK520", no match is returned

Whats also interesting is that from within the Admin page, this example of partial search works just fine.

Has anyone else found a way to get the main site search to behave correctly with partial word search?

User avatar
david-ebt
Captain (CAPT)
Captain (CAPT)
Posts: 253
Joined: Fri Dec 31, 2010 10:12 am

Re: Partial Word Search not working

Post by david-ebt » Thu Mar 22, 2012 1:43 pm

The consumer facing simple search typically uses the SQL Full Text Search and that search is a "starts with" search. It also searches the Name, Sku, ModelNumber, SearchKeywords, Summary, Description, and ExtendedDescription fields.

We modified the simple search to use a wild card or LIKE search (*LK520*) but then SQL had to perform a full table scan. And since it is searching all of those fields, the search was taking more time than customers expected. Another option we tried was to implement a separate product code search. Some customers didn't like that option.

Another option is to monitor what people do search for and add those terms to the search keyword field for the product. In your example case, you would add "LK520" to the "55LK520" search keyword field. Over time your search keywords will get better and so will the search.

Getting AbleCommerce to search like Google isn't going to happen, so right now it seems like the options are balancing performance and results.
David
http://www.ecombuildertoday.com
Enhanced Reporting for AbleCommerce
Image

brianpw
Ensign (ENS)
Ensign (ENS)
Posts: 4
Joined: Mon Oct 31, 2011 3:29 pm

Re: Partial Word Search not working

Post by brianpw » Thu Mar 22, 2012 3:08 pm

thank you for the information. My developer told me that it was using the "starts with" search for the front end.

I

Post Reply