Hello there, hope you are great!
Let’s say I have a list of my users’ names. An item (user’s name) could be just first name & last name (like John Smith), or a full name (like John Henry Smith). What I want to do is, when the user tries to search for someone, if the keyword is in the name, the list should show it. Here’s an example -
Let’s say, this is my list -
- John Henry Smith
- Jane William Foster
- William Smith
- John Brown
If I simply try to search ‘John’, it should return both item1 & item4 as they both contain John. But here’s where the fun begins - If I search ‘John Smith’, (since there is no item exactly containing John Smith), it should return me item1, as it contains both John and Smith. The key is, the search keyword doesn’t have to match exactly with the items.
Is this sorta thing possible? Searching every word of the entered keyword in an item? Any advice/help is appreciated! Thanks!