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

Case sensitive when searching in Cyrillic #26

Open
it763 opened this issue Dec 28, 2022 · 1 comment
Open

Case sensitive when searching in Cyrillic #26

it763 opened this issue Dec 28, 2022 · 1 comment

Comments

@it763
Copy link

it763 commented Dec 28, 2022

Description

Case sensitive when searching in Cyrillic.

Steps to reproduce

Go to Search field, type keyword, for example in cyryllic - пример. After type same keyword in uppercase (ПРИМЕР).

Expected Behavior

Search resulst are equal

Actual Behavior

Search resulst are not equal

Metadata

Typesense Version: typesense:0.24.0
Docusaurus Version: 2.2.0
docusaurus-theme-search-typesense Version: 0.8.0

@jasonbosco
Copy link
Member

This requires tweaking the Typesense schema generated by typesense-docsearch-scraper to include a locale: xyz parameter to each field definition here: https://github.com/typesense/typesense-docsearch-scraper/blob/a005d7a8bbd45bd71fd3895024f05663e9f797c6/scraper/src/typesense_helper.py#L36-L51

So you would have to fork the scraper, and change the field definition to for eg:

{'name': 'hierarchy.lvl0', 'type': 'string', 'facet': True, 'optional': True, 'locale': 'ro'},

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