Skip to content

Syntax for Keyword Searching (LIKE in SQL) #69

@blesson3

Description

@blesson3

What is the syntax for filtering by wildcard using a FileBackend?

Ex.
I have a Dog document class that has one object persisted with the properties of
{ 'name':'fido', 'color':'brown', 'owner':'Joe Smith' }
I want to be able to filter through all of the persisted dog objects with a wildcard like so,
dogs = backend.filter(Dog, { 'owner': { '$LIKE': 'Joe%' } })
and have the object specified above to be returned in an array.

Is this already supported in any fashion? If not, then is there any movement to support this?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions