evershopcommerce / evershop

🛍️ NodeJS E-commerce Platform
https://evershop.io/
GNU General Public License v3.0
4.09k stars 1.13k forks source link

[BUG] Filter product #551

Open leandrosantoss opened 3 months ago

leandrosantoss commented 3 months ago

Describe the bug Click on product registration and try to filter

I have 3 products image

But when filter only accepts the full name. If filtering a snippet doesn't work image

image

Not case insensitive image

Thanks

hussaincoder23 commented 3 months ago

Can you please describe it again , what is the issue ?

leandrosantoss commented 3 months ago

The problem is in the filter:

Should be:

treoden commented 3 months ago

Hi @leandrosantoss ,

You are using keyword search, it is a full text search in postgres db. Not an ilike query. You can check more here: https://github.com/evershopcommerce/evershop/blob/e86a67030dfccbafe4d5c9e1aa5a97bcb56e5cde/packages/evershop/src/modules/catalog/services/registerDefaultProductCollectionFilters.js#L19

Thanks

leandrosantoss commented 3 months ago

Is the idea to continue with the full text?

It makes it a little difficult because rarely does the person know the exact name.

treoden commented 3 months ago

Hi @leandrosantoss

I tried and see it:

  1. Is not case sensitive
  2. Does not require full name

image

Can you check again? Thanks

leandrosantoss commented 3 months ago

Hi, @treoden

It doesn't work in my application (1.1.0). Do I need to do any configuration?

https://github.com/evershopcommerce/evershop/assets/59751373/637b324a-1b58-4f9c-b1cf-dcab3575327d

leandrosantoss commented 3 months ago

Hi @treoden, do you understand my problem?

treoden commented 3 months ago

Hi @leandrosantoss

Yes i see. Let me double check again

leandrosantoss commented 2 months ago

Hi @treoden Were you able to check?