This repository has been archived by the owner on Jan 6, 2023. It is now read-only.
This repository has been archived by the owner on Jan 6, 2023. It is now read-only.
Search using (q) parameter could match a field partially, not exactly #743
Labels
bug
Something isn't working
Feature Request
When using "q" parameter (usually using a search field in header bar of directus app), only rows with a field that exactly matches the searched string is returned. However, in practical life, it would be better if field would be matched partially.
Example: In demo, collection "Movies": https://directus.app/#/collections/movies
Try searching "Years". I expect the movie "18 Years Later (Diciotto anni dopo)" to be found, but no result is returned.
It can be bypassed by using a field filter using "contains" mode, however that is more difficult and less intuitive.
What problem does this feature solve?
It is a UX improvement. Users usually expect these "quick search fields" to work this way.
How do you think this should be implemented?
The DB query would be constructed using
field LIKE "%VALUE%"
instead offield = "VALUE"
. Or at least for text fields.Would you be willing to work on this?
I could probably do this, however an experienced directus developer would do this way faster.
The text was updated successfully, but these errors were encountered: