Search engine turkish character problem

Thursday, April 25, 2024 10:41:37 PM
  • Posted: Monday, March 8, 2021 8:04 AM
  • 7
Hello there,
I am having a problem with the search engine. I share the images in the attachment. Can you help with this?



https://drive.google.com/drive/u/0/folders/1gxnUPuTHu0Mj2PrvOmsvg9kptivi75re
0
  • Posted: Tuesday, March 9, 2021 6:34 AM
  • 953
Hello,

Please insert the image here, directly in the forum post. It's not accessible.
Best regards,
Patryk

GrandNode Team
0
  • Posted: Wednesday, March 10, 2021 8:32 PM
  • 6
Hello Patryk,

We have a product named "İncir". İ is turkish char. When we search for any word Grandnode compares the word written from the search panel with the word in mongodb.
Grandnode comparing strings case insensitive. In Grand.Services/Queries/Handlers/Catalog/GetSearchProductsQueryHandler.cs file                        

filter = filter & builder.Where(p =>
                                (p.Name != null && p.Name.ToLower().Contains(request.Keywords.ToLower()))

When we remove "ToLower()", grandnode finds the product "İncir".
So Grandnode can not compare turkish strings case insensitive.
0
  • Posted: Thursday, March 11, 2021 8:01 AM
  • 953
Hello,
Thanks a lot for the background of the problem, we will investigate it.
Best regards,
Patryk

GrandNode Team
0
  • Posted: Sunday, March 14, 2021 6:16 PM
  • 6
Hello Patryk,

Is there any progress on the problem, is there any solution you can suggest?
0
  • Posted: Monday, March 15, 2021 7:07 AM
  • 953
Hello Alp,

In the mentioned line there should be ToLowerInVariant() instead of ToLower(). You can fix it in your project, we will introduce fixes in the next version of GrandNode.
Best regards,
Patryk

GrandNode Team
0
back to top
Filters