Closed lpite closed 1 year ago
Describe the bug Cant search numbers when defaultLanguage is russian
To Reproduce Steps to reproduce the behavior:
const db = create({ schema: { num: "string", name: "string" }, defaultLanguage:"russian" });
const data = [ {num:"123",name:"тест 1"}, {num:"321",name:"тест 2"}, {num:"6666",name:"тест 3"} ];
data.forEach((doc)=>{ insert(db, doc) })
const searchResult = search(db, { term: "6666", properties: "*", });
Expected behavior
Screenshots If applicable, add screenshots to help explain your problem.
Desktop (please complete the following information):
Hi @lpite, thanks for opening this!
Can you provide a reproduction of this issue? It would be helpful for anyone who wants to work on this.
@mateonunez added
Describe the bug Cant search numbers when defaultLanguage is russian
To Reproduce Steps to reproduce the behavior:
const db = create({ schema: { num: "string", name: "string" }, defaultLanguage:"russian" });
const data = [ {num:"123",name:"тест 1"}, {num:"321",name:"тест 2"}, {num:"6666",name:"тест 3"} ];
data.forEach((doc)=>{ insert(db, doc) })
const searchResult = search(db, { term: "6666", properties: "*", });
Expected behavior
Screenshots If applicable, add screenshots to help explain your problem.
Desktop (please complete the following information):