How can I solve multiple tag filtering issues?

Hi all,

I would like to facing the tag filtering problem.

When designed like below screen for searching 2 conditions

  1. 235and35andd19

  2. 265and40and18

As a result, found more combinations like e.g. 235and40and18, 265and35and19 etc…

For tab filtering, would please advise how to solve under

  1. 235and35andd19

OR

  1. 265and40and18

Much appreciated in advance.

Best Regards,

Anthony

You need to provide a much clearer description.

How is the search implemented. etc

Are you trying to join input text to create a combined search keyword that then tries to match to a specific tag, etc. If so there’s no information you’ve given that would indicate why you wouldn’t be able to find “265and40and18”

Hi Paul,

Thanks for your prompt reply.

For below combination, you may think there’s Long x width x Height criteria:

  1. 235x35x19

  2. 265x40x18

Like my capture screen, I like to search the list with 235x35x19 OR 265x40x18.

Nowadays, the result list containing wrong items including e.g. 235x40x18, 235x40x19, 235x35x18, 265x35x19, 265x35x18, 265x40x19 as well.

Originally, I wanna to retrieve 235x35x19 OR 265x40x18 only.

Hope it makes you clear.

Best Regards,

Anthony

See the prefix option in the search docs

https://shopify.dev/docs/themes/navigation-search/search

Even with that option you may need to just write custom logic to no render items that don’t match the exact tag.