seperman / fast-autocomplete

Fast Autocomplete: When Elastcsearch suggestions are not fast and flexible enough
MIT License
267 stars 40 forks source link

How to search not only within latin alphabet? #36

Closed Vitaly-Protasov closed 2 years ago

Vitaly-Protasov commented 2 years ago

Is your feature request related to a problem? Please describe. Imagine the situation when I load only words with Cyrillic in order to use the auto-complete related to those kind of symbols. Unfortunately, it doesn't work.

Describe the solution you'd like I propose to add the search not only in latin alhpabet.

Describe alternatives you've considered

Additional context

Vitaly-Protasov commented 2 years ago

Solved: I've figured out how to do this. Thank you for you library.

autocomplete = AutoComplete(
    words=auto_dict,
    valid_chars_for_string='абвгдеёжзийклмнопрстуфхцчшщъыьэюя'
)