Skip to content
This repository has been archived by the owner on Mar 15, 2023. It is now read-only.

Support $search #33

Closed
ekryski opened this issue Apr 23, 2016 · 1 comment
Closed

Support $search #33

ekryski opened this issue Apr 23, 2016 · 1 comment

Comments

@ekryski
Copy link
Member

ekryski commented Apr 23, 2016

This 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.

Internally mongodb requires a $regex query but we can fairly easily build a singular regex from this array. Another internal construct that mongodb provides is $text so we might be able to use that for full text search.

@daffl
Copy link
Member

daffl commented May 20, 2016

See feathersjs/feathers#334

@daffl daffl closed this as completed May 20, 2016
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants