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鈥檒l occasionally send you account related emails.

Already on GitHub? Sign in to your account

The search not working properly when I type 馃敘 #395

Open
givik opened this issue Jun 18, 2023 · 2 comments
Open

The search not working properly when I type 馃敘 #395

givik opened this issue Jun 18, 2023 · 2 comments
Assignees

Comments

@givik
Copy link

givik commented Jun 18, 2023

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!

@givik givik changed the title Please see my example. The search not working properly when I type 馃敘 The search not working properly when I type 馃敘 Jun 19, 2023
@ahmad-moussawi
Copy link

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

@givik
Copy link
Author

givik commented Jul 12, 2023

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!

@ts-thomas ts-thomas self-assigned this Jan 6, 2024
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

3 participants