Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support wildcards and regexp queries #676

Merged
merged 5 commits into from
Jan 6, 2018
Merged

Conversation

dennwc
Copy link
Member

@dennwc dennwc commented Jan 6, 2018

Implement a subset of regexp - a wildcard query (LIKE in SQL). Resolves #664.

At the same time enable regexp optimization for all backends.

Wildcards are exposed in path lib:

p.HasFilter(quad.IRI("name"), false, shape.Wildcard{
  Pattern: `An%`,
})

And in Gizmo:

g.V().Has("<name>", like("An%"))

@dennwc dennwc added this to the v0.7.1 milestone Jan 6, 2018
@dennwc dennwc merged commit fd6fbf9 into cayleygraph:master Jan 6, 2018
@dennwc dennwc deleted the wildcards branch January 6, 2018 16:34
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant