Skip to content

Include digits and update unicode regex generation - #115

Open
dhdaines wants to merge 6 commits into
MihaiValentin:masterfrom
dhdaines:include_digits
Open

Include digits and update unicode regex generation#115
dhdaines wants to merge 6 commits into
MihaiValentin:masterfrom
dhdaines:include_digits

Conversation

@dhdaines

@dhdaines dhdaines commented Jul 6, 2024

Copy link
Copy Markdown

The unicode-8.0.0 package has been deprecated for a while. The README also recommends to use regenerate to make regexes, which is much nicer than the way we were doing it before.

But also, a persistent annoyance with lunr-languages was that numbers were missing from wordCharacters in all the Latin and Cyrillic-based languages, while they are present in the default wordCharacters. (also, Indic-Arabic numerals are present for Arabic, Hindi, etc...). So this adds them back, thus fixing #66 and maybe some other bugs.

The problem of the trimmer not being run in the search pipeline persists but that's a lunr.js bug :) at least now things like "HAL9000" wil get indexed.

@dhdaines

dhdaines commented Jul 6, 2024

Copy link
Copy Markdown
Author

For some reason we weren't including combining diacritics, yet we were depending on them in the test, so those get added too.

@McShelby

McShelby commented Mar 2, 2025

Copy link
Copy Markdown
Collaborator

Your input here and in the Lunr repo is really helpful. I wished, this would be available in an official release. Thanks a lot!

@dhdaines

dhdaines commented Mar 3, 2025

Copy link
Copy Markdown
Author

Your input here and in the Lunr repo is really helpful. I wished, this would be available in an official release. Thanks a lot!

I have contemplated forking lunr, to just include (corrected) lunr-languages... and yet, there are only 24 hours in a day and 7 days in a week :-(

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

Successfully merging this pull request may close these issues.

2 participants