nextapps-de / flexsearch

Next-Generation full text search library for Browser and Node.js
Apache License 2.0
12.54k stars 492 forks source link

The search not working properly when I type 🔢 #395

Open givik opened 1 year ago

givik commented 1 year ago

I have a Next/React page with approximately 30,000 movie records json data file.

Please visit the following link: codesandbox

I'm using FlexSearch to search for movie titles.

For instance, I have an excellent movie titled "Into The Wild". However, sometimes when I type "Into The Wild" into the search, it doesn't work as expected:

  1. Try to enter the beginning of the movie: Int, Into, Into t, Into the Top Result: End of the World

  2. Try to enter the beginning of the movie: Into the w, Into the wi, Results: Bitcoin: The End of Money as We Know It The Spy Who Went Into the Cold

  3. Try to enter the beginning of the movie: Into the w, Into the wil, Result: I Will Follow You Into the Dark

It returns incorrect movies. I believe I might be making a mistake somewhere in my code implementation. I would greatly appreciate your assistance.

Thank you!

ahmad-moussawi commented 1 year ago

The code sandbox is not available anymore, do you have a recent one?

givik commented 1 year ago

The code sandbox is not available anymore, do you have a recent one?

you can review the code here: https://replit.com/@givik/AgileEnlightenedArchive

Thanks!