opencypher / cypher-for-gremlin

Cypher for Gremlin adds Cypher support to any Gremlin graph database.
Apache License 2.0
359 stars 48 forks source link

Unsupported RegexMatch expression #264

Closed mad closed 5 years ago

mad commented 5 years ago

Query like this: WHERE name =~ "Hello"

dwitry commented 5 years ago

Merged to tinkerpop334 branch as well.

mad commented 5 years ago

JanusGraph support custom Text.REGEX predicate that can be translated to backend specified query like a lucene RegexpQuery

It may implemented using the GremlinRewriter?

dwitry commented 5 years ago

It would be straightforward to implement using rewriter, however it would require to create separate module in Cypher for Gremlin, because Text is located in janusgraph-core. We try to avoid implementation specific dependencies in Cypher for Gremlin translation module.