Skip to content
New issue

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

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

Already on GitHub? # to your account

feat: enhance FlexSearch encoding for CJK support #553

Merged
merged 1 commit into from
Jan 18, 2025
Merged

Conversation

imfing
Copy link
Owner

@imfing imfing commented Jan 18, 2025

  • Added support for CJK (Chinese, Japanese, Korean) languages in FlexSearch encoding.
  • Introduced isCJK function to detect language and select appropriate encoding method.
  • Implemented encodeCJK and encodeDefault functions for different tokenization strategies.

- Added support for CJK (Chinese, Japanese, Korean) languages in FlexSearch encoding.
- Introduced `isCJK` function to detect language and select appropriate encoding method.
- Implemented `encodeCJK` and `encodeDefault` functions for different tokenization strategies.
Copy link

netlify bot commented Jan 18, 2025

Deploy Preview for hugo-hextra ready!

Name Link
🔨 Latest commit f3d2a5b
🔍 Latest deploy log https://app.netlify.com/sites/hugo-hextra/deploys/678beb8d5c3dee00085d64dc
😎 Deploy Preview https://deploy-preview-553--hugo-hextra.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify site configuration.

@imfing imfing merged commit 14036ff into main Jan 18, 2025
4 checks passed
@imfing imfing deleted the 552-cjk-search branch January 18, 2025 18:54
# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Chinese full text search not working when searching words that locate in the middle of a sentence
1 participant