lloyd_borrett:
I’d need to see it working somewhere where it’s handled well within Zen Cart. Got any examples?
Not at the moment (that I can think of).
lloyd_borrett:
I would have thought it reasonably easy to improve the Zen Cart search to handle stuff with a hyphen. Search for a word with a hyphen in the keywords list
I am, and forever will be puzzled over what a 'keyword' actually is.
lloyd_borrett:
e.g. ‘air-spool’. Then add that term with the hyphen replaced by a space (e.g. ‘air spool’) and without the hyphen (e.g. ‘airspool’) to the keyword list. Then do the search.
But then why stop at the hyphen? Shouldn't 'air_spool’ also have the conversion to ‘air spool’ ?
What if the search query is for ‘Airs pool’ - Does the searchee really want to see results for ‘air spool’ ?
lloyd_borrett:
Right now while writing product descriptions I have to be mindful to put all hyphen variants into the product descriptions, e.g. 'air-spool', 'air spool' and 'airspool', which typically makes them look a bit weird.
TBH, you don't have to be mindful, it is more that you choose to. Given the same situation my choice would be to pick one and be consistent about it.
lloyd_borrett:
It's not done for SEO (because the search engines handle it), but because of Zen Cart search limitations.
But I might be missing something.
Best regards, Lloyd Borrett.
What I think you are probably missing is that there is no consensus about how a SE should work, other than it is supposed to intuitively bring up the desired result for the searchee no matter how vague the search query. Google have put a lot of processing power into achieving this aim, which can't be replicated with a 'simple' search and finite amount of data.
It actually wouldn't be hard to implement your suggestion (replace hyphens/underscores with spaces then search for both 'air spool' and 'airspool', but it would also be more practical to replace these characters AND spaces with nulls, this will allow all variants be found with a single query. Downside is, unwanted results - If I search for 'air spool' I don't want 'airspool' being visible in the results.
Of course, it gets more complex than this if/when you take the AND/OR scenario into account. A person searching for 'air spool' could be looking for exactly that, or they may be searching for something that contains 'air' AND 'spool', or perhaps 'air' OR 'spool'.
The point I'm trying to make here is yes, it would be "reasonably easy to improve the Zen Cart search to handle stuff with a hyphen", but is this something that everyone wants? I doubt it. Is it easy to stop at just making this 'improvement', or is this just the thin end of a very big wedge that eventually evolved into Google?
Where does it stop?
Cheers
RodG
NOTE: We are sorry that Rod is no longer with us.
We are grateful for all his contributions to the Zen Cart community.
Ozpost - The Ultimate Shipping module for Australian Merchants. Click these links for its Homepage, or Download from Zen-Cart.com.