oramasearch / orama

🌌 A complete search engine and RAG pipeline in your browser, server or edge network with support for full-text, vector, and hybrid search in less than 2kb.
https://docs.orama.com
Other
8.64k stars 291 forks source link

Cant search numbers when defaultLanguage is russian #226

Closed lpite closed 1 year ago

lpite commented 1 year ago

Describe the bug Cant search numbers when defaultLanguage is russian

To Reproduce Steps to reproduce the behavior:

  1. const db = create({ schema: { num: "string", name: "string" }, defaultLanguage:"russian" });
  2. const data = [ {num:"123",name:"тест 1"}, {num:"321",name:"тест 2"}, {num:"6666",name:"тест 3"} ]; data.forEach((doc)=>{ insert(db, doc) })
  3. 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):

mateonunez commented 1 year ago

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.

lpite commented 1 year ago

@mateonunez added