Having problems with searching specific terms

  • Posts: 40
  • Thank you received: 0
9 years 9 months ago #165183

-- url of the page with the problem -- : ampdautosport.com
-- HikaShop version -- : 2.3.1
-- Joomla version -- : 2.5 business
-- PHP version -- : x.x.x
-- Browser(s) name and version -- : Firefox
-- Error-message(debug-mod must be tuned on) -- : Error_message

Hello!

I have a website with about 42,000 products. My clients need to search for their products because browsing is very difficult. Recently, I have been getting complaints that the search function is not finding products.

When searching for "BMW 2010 M5" the search yields no results but clearly the product exists (see ampdautosport.com/component/hikashop/pro...1151-1521?Itemid=495 ). In fact there are at least 16 M5 products in the catalogue.

Have I over looked something? Is there something wrong with the search?

Any help would be appreciated.

Please Log in or Create an account to join the conversation.

  • Posts: 12953
  • Thank you received: 1778
9 years 9 months ago #165216

Hello,

1. Can you make sure that your "HikaShop products search plugin" is published ?

2. Can you go on your "HikaShop products search plugin" configuration page and set the "Itemid" option to the ID of a Category listing content menu which have an associated module, and try it again ?

Please Log in or Create an account to join the conversation.

  • Posts: 40
  • Thank you received: 0
9 years 9 months ago #165310

Hi!

Okay, I followed your instructions.

1. It is plugged in all the way! It was already published but the Hikashop category plugin wasn't turned on. So, I turned it on and off once I did step 2.
2. I set the item ID to the same ID as the BMW category (whose parent is 'shop all products'). Yet there is no change. I set to the ID of both the associated module and the category menu listing number but there was no change. It yielded the same results as before.

What was supposed to happen?

Please Log in or Create an account to join the conversation.

  • Posts: 81540
  • Thank you received: 13071
  • MODERATOR
9 years 9 months ago #165341

Hi,

When I search for "BMW 2010 M5" on your website, I get plenty of results containing both BMW and 2010 in the product name.
M5 is ignored because it has less than 3 letters: www.gavick.com/blog/search-word-limit-in-joomla-no-more/
That's a limitation of Joomla itself, not HikaShop. You'll have to modify the joomla code to take into account 2 letters words.
That can be done in the code:

public static function getLowerLimitSearchWord()
	{
		return 3;
	}
of the file languages/en-GB/en-GB.localise.php

I actually get the first 50 results for BMW and 2010 and there is likely a lot more of results, including the ones for M5.
The limit of 50 results can actually be increased in the options of the plugin.

So as far as I can see, it's working as it should, on HikaShop's end.

Please Log in or Create an account to join the conversation.

  • Posts: 40
  • Thank you received: 0
9 years 9 months ago #165457

Wow.

I had no idea of the limitation on the Joomla end. I altered the code and...... it worked! It produced the proper results I was looking for.

I also upped the search results to 200.

Thanks for all your help, Nicolas and Mohamed!

Hikashop RULEZ!!

Please Log in or Create an account to join the conversation.

Time to create page: 0.076 seconds
Powered by Kunena Forum