hugo-theme-learn icon indicating copy to clipboard operation
hugo-theme-learn copied to clipboard

Use fusejs instead of lunrjs to support searching for more languages

Open vicevolf opened this issue 4 years ago • 1 comments

I noticed that because of the use of lunrjs, learn theme search seems to be only friendly to English, and lacks support for Japanese, Chinese, Korean, etc.

Fusejs may improve this problem, and it is also friendly to Hugo.

https://github.com/krisk/Fuse

https://gist.github.com/eddiewebb/735feb48f50f0ddd65ae5606a1cb41ae

And support for algolia can be used as an alternative.

vicevolf avatar Apr 04 '21 16:04 vicevolf

https://github.com/onweru/compose/

https://github.com/zzossig/hugo-theme-zzo/issues/28

They uses fusejs to search.

vicevolf avatar Apr 04 '21 16:04 vicevolf