diegohaz/querymen

Non-Ascii characters in query are replaced

kbzowski opened this issue · 1 comments

Lets assume simple search url like: /search?q=Sól
By default, the query is parsed as /sol/i but this is not right (different word)
I tried to define my own schema:

let searchSchema = new querymen.Schema({
  q: {
    type: String
  }
})

But still non-ascii characters are replaced.
Can I somehow disable that escaping?

I have found a solution in sources.
normalize: false
solves the problem.

I believe this should be documented somehow :)