Support $search
See original GitHub issueThis is a proposed special attribute that allows you to fuzzy match a property. Possibly even multiple properties and/or nested documents.
Suggested syntax:
name: {
$search: ['alice', 'Alice', 'bo', /$bob/i]
}
Following similar syntax to our other special query filters, this would allow you to filter by a singular value, multiple values (treated like an or) and/or regular expressions directly.
For knex we’d have to manually construct OR queries so it would get a little messy because in order to do LIKE queries the syntax is:
knex('users').where('name', 'like', '%Test%');
Issue Analytics
- State:
- Created 8 years ago
- Reactions:2
- Comments:5 (1 by maintainers)
Top Results From Across the Web
Google Help
Choose a Google product. Google Chrome · Google Account · YouTube · Gmail · Google Play · Google Search · Google AdSense ·...
Read more >Google SEO Help and Support | Google Search Central
Get SEO support from Google Search Specialists. We can help with search appearance and rankings, rich results, security, Search Console, and more.
Read more >Official Apple Support
Apple support is here to help. Learn more about popular topics and find resources that will help you with all of your Apple...
Read more >Customer Support Search by Swiftype
Provide a search experience that intelligently displays results and significantly reduces the number of inbound support tickets. Autocomplete.
Read more >Zendesk Support search reference
Search operators; Ticket property keywords; User property keywords ... Administrators can search all the data in Zendesk Support.
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Here are a couple examples of how I typically handle this in both Sequelize and Mongo/Mongoose
Sequelize
Mongo/Mongoose
@DaddyWarbucks: Thanks again! I made a hook for KnexJS FeathersJS adapter (
q
tolike
query): https://github.com/josx/ra-data-feathers/issues/175#issuecomment-1065925854