Need help to modify typeahead search widget

Ritanjali Pati
Mega Expert

Hi Experts,

I need a help regarding typeahead search widget. We can search by letters in typeahead search for all catalog items. But I am not able to search the same catalog items when I am searching by numbers. Please find the below screen shot.

find_real_file.png

 

find_real_file.png

 

Please reply if anyone could help on this.

 

Thanks & regards,

Ritanjali

15 REPLIES 15

Allen Andreas
Administrator
Administrator

Hi,

Yes, it's not just single numbers like that, but you also can't search for less than 3 characters I believe. So if I had a catalog item name: IT Helper 2.0 or something and I typed in just IT...it still wouldn't come up, even if I "double-dipped" and tried to place IT in metadata as well.

In the Data Source portion of the search source...unfortunately, I don't see anything about character count, it merely goes off of a "query" function already having brought in my search term using:

sn_sc.CatalogSearch().search(portalValue, '', query);

You may be able to try to alter that somehow to look for STARTS WITH or CONTAINS and see if that changes the results.

Please mark reply as Helpful/Correct, if applicable. Thanks!


Please consider marking my reply as Helpful and/or Accept Solution, if applicable. Thanks!

Hi Allen,

 

Thanks for your reply, but it is not solving the issue.

 

 

Regards,

Ritanjali

Uh, ok, sure?

It'd be nice if you showed us what you did to say it doesn't work. Thanks!


Please consider marking my reply as Helpful and/or Accept Solution, if applicable. Thanks!

VigneshMC
Mega Sage

If you check the typeahead widget, minimum character length required for search is 2.

You may be you have to clone and update the widget to get this working.

find_real_file.png