Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

lunr.de fails with umlaute in wildcard search #80

Open
jonex2 opened this issue Oct 15, 2021 · 0 comments
Open

lunr.de fails with umlaute in wildcard search #80

jonex2 opened this issue Oct 15, 2021 · 0 comments

Comments

@jonex2
Copy link

jonex2 commented Oct 15, 2021

Searching for words with umlaute fails if wildcard search is used:

const lunr = require('lunr')
require('lunr-languages/lunr.stemmer.support')(lunr)
require('lunr-languages/lunr.de')(lunr)

const idx = lunr(function () {
  this.use(lunr.de)
  this.field('text') 
  this.add({
    id: 1,
    text: 'das ist günstig'
  })
})

console.log(idx.search('günstig').length) // result: 1
console.log(idx.search('günsti*').length) // result: 0

I tried a workaround described in a comment of #66, but this didn't work.
I would be very happy if the bug could be fixed in lunr.de

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant