olivernn / lunr.js

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

Support non-Latin character sets #113

Closed Tvaroh closed 10 years ago

Tvaroh commented 10 years ago

Hello.

Is it possible to support non-Latin characters sets, at least for 1-to-1 matching? Cyrillic example:

var index = lunr(function () {
  this.field('text');
});

index.add({ id: 1, text: 'русский' });

index.search('русский') // returns []
olivernn commented 10 years ago

I'm not sure if it covers the language you need but you should check out https://github.com/MihaiValentin/lunr-languages

Tvaroh commented 10 years ago

Great, thanks. Any reason why this is not mentioned in the main page?

olivernn commented 10 years ago

The main page is a bit sparse on details, I'll put some more details on the wiki when I get a chance