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

unidecode of input query #15

Open
NickSimkin opened this issue Jan 12, 2020 · 1 comment
Open

unidecode of input query #15

NickSimkin opened this issue Jan 12, 2020 · 1 comment

Comments

@NickSimkin
Copy link

NickSimkin commented Jan 12, 2020

Hi! Thanks for a good job! Searching bakend is really what wagtail needs

My question about unidecode function. Why wagtail-whoosh calls it for every field? If I develop multilingual site I create field for every languge and this fields all indexed by Whoosh. And when I searching, backend convert query words from unicode to Ascii. It is not what I want!

try:
     # Only use the GPLv2 licensed unidecode if it's installed.
     from unidecode import unidecode
except ImportError:
     def unidecode(value):
         return value
@michael-yin
Copy link
Member

@NickSimkin

  1. You can set the fields to search when calling the API. EventPage.objects.search("Event", fields=["title"])

  2. I will check the backend convert query words from unicode to Ascii issue in a bit.

Thx.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants