olivernn / lunr.js

A bit like Solr, but much smaller and not as bright
http://lunrjs.com
MIT License
8.91k stars 546 forks source link

Using lunr languages #302

Closed myalgo closed 6 years ago

myalgo commented 6 years ago

I was checking the language support code on https://lunrjs.com/guides/language_support.html I had following questions :

1) How do I use lunr languages for prebuilt indexes ? Please give example of client side javascript code

2) Does lunr languages support current codebase for lunr? We are currently using 2.1.3

3) Currently languages supported is needed for Japanese, Portuguese, Korean, Chinese (traditional and simplified). However I see only the first 2 languages listed.

Kindly advice. Thanks!

olivernn commented 6 years ago

How do I use lunr languages for prebuilt indexes ? Please give example of client side javascript code

What did you try? I think this exact scenario is mentioned in the README for the lunr languages project.

Does lunr languages support current codebase for lunr? We are currently using 2.1.3

Yes, it supports every version of Lunr from 0.6 upwards. It looks like the README could be updated here, why not send a pull request?

Currently languages supported is needed for Japanese, Portuguese, Korean, Chinese (traditional and simplified). However I see only the first 2 languages listed.

If a language you need is not currently supported then there is a guide on adding support.