Redocly / redoc

📘 OpenAPI/Swagger-generated API Reference Documentation
https://redocly.github.io/redoc/
MIT License
23.3k stars 2.29k forks source link

Search is not working for Chinese #949

Open mouhong opened 5 years ago

mouhong commented 5 years ago

OS: macOS Mojave Browser: Chome 75.0.3770.100 (Official Build) Redoc Version: 2.0-rc8 (https://cdn.jsdelivr.net/npm/redoc@next/bundles/redoc.standalone.js)

Our apis are written in Chinese, and search for any keyword is just producing empty result. I tried changing one of our api to English and the search function works. Looks like a bug?

Thanks

thereisnobugs commented 4 years ago

Browser: Chome 83.0.4103.116 (Official Build) Redoc Version: 2.0-rc31 (https://cdn.jsdelivr.net/npm/redoc@2.0.0-rc.31/bundles/redoc.standalone.js)

In Russian the search does not work either

It's because lunr doesn't support these languages https://lunrjs.com/guides/language_support.html

eryshkov commented 4 years ago

Browser: Chome 84.0.4147.89 (Official Build) (64 bit) Redoc Version: 2.0-rc31 (https://cdn.jsdelivr.net/npm/redoc@2.0.0-rc.31/bundles/redoc.standalone.js) The search does not work in Russian. In English it works. Please help