Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Make it possible to use non-accented characters in search #167

Open
jose1711 opened this issue Jan 1, 2024 · 1 comment
Open

Make it possible to use non-accented characters in search #167

jose1711 opened this issue Jan 1, 2024 · 1 comment
Labels
enhancement New feature or request

Comments

@jose1711
Copy link

jose1711 commented Jan 1, 2024

To reproduce

  • add item with name kráľ (king in Slovak)
  • try to find it using a string with special characters stripped - kral

Expected result

  • item is found

Actual result

  • no match

Python provides unidecode module to strip accented characters from a string so perhaps it can be used to provide the feature.

from unidecode import unidecode
unidecode('kráľ')  # returns kral

Test environment
v.0.19.3 inside a YunoHost instance

@jedie
Copy link
Owner

jedie commented Jan 2, 2024

Hm. The search functionality is just from Django. Think it's possible by https://docs.djangoproject.com/en/5.0/ref/contrib/admin/#django.contrib.admin.ModelAdmin.get_search_results
I will take a look.

@jedie jedie added the enhancement New feature or request label Jan 2, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants