unf4z3d / slotmotion

0 stars 0 forks source link

Search functionality is too percise #2

Open unf4z3d opened 6 years ago

unf4z3d commented 6 years ago

User should be able to search by contains, not just from start of String. ie: "ument" should match "Document 2"

Also, user should be able to search without worrying about punctuation and spaces, ie:

"document2" should match "Document 2"

aasanchez commented 6 years ago

This issue can not be fixed because the Firebase database search engine only works with three methods startAt(), endAt(), and equalTo(). Execute query in mode SQL using "LIKE", "BETWEEN" etc is not supported by the current Firebase database interfaces.

https://firebase.google.com/docs/reference/js/firebase.database.Query

unf4z3d commented 6 years ago

@aasanchez In this case, then it would be appropriate to use client side search, as the current search feature is not useful at all. I know bootstrap table has built in search functionality, and also this could be done with some vanilla javascript logic on the client side

aasanchez commented 6 years ago

@unf4z3d this mean rewrite the table, I don't think its good rewrite a functionality than was done for weeks, you as the client should test this before, the table one of the first feature complete, some "css" details, but was done, and now, need change the main functionality? really? when we start the project the instruction was "use firebase, much as possible", and this is why I create the table in this way.