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’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error found when implementing user search functionality #1

Open
ishanj-lk opened this issue Jun 12, 2023 · 1 comment
Open

Error found when implementing user search functionality #1

ishanj-lk opened this issue Jun 12, 2023 · 1 comment

Comments

@ishanj-lk
Copy link
Owner

When we are updating our data(Name hometown) to the database we have to update in case sensitive manner otherwise when we showing in the UI it will be inappropriate. But when we search case sensitivity and additionally text spaces become a problem because at

.startAt(searchUsersETTxt).endAt(searchUsersETTxt+"\uf8ff")

in database reference it not search with user input's text spaces and it is case sensitive. We don't know user enter uppercase or lower case.

As a solution for that I had to create a new data entry called "name4search" for each user apart from name and other user information in database. We have to update lowercase and spaces free text to the "name4search". And then we can successfully use it for searching purposes.

@ishanj-lk
Copy link
Owner Author

Solution Provided.

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

1 participant