pouchdb-community/pouchdb-quick-search

Japanese tokenizer does not work

Open

#40 opened on Nov 25, 2015

View on GitHub
 (6 comments) (0 reactions) (0 assignees)JavaScript (82 forks)github user discovery
help wanted

Repository metrics

Stars
 (377 stars)
PR merge metrics
 (PR metrics pending)

Description

Hi,

I'm using this module with lunr.jp.js but it doesn't work. The problem is that the lunr.jp.js replaces from original lunr.tokenizer to Japanese tokenizer.

The pouchdb-quick-search seems not to use global.lunr.tokenizer because it uses an internally initialized lunr which doesn't have the Japanese tokenizer.

I want to replace the tokenizer in the pouchdb-quick-search into Japanese one but it doesn't expose lunr. It would be nice to add an option which can specify arbitrary instance of lunr.

Contributor guide