How can I perform a wildcard search on a vertex property in titan graph DB? How can I perform a wildcard search on a vertex property in titan graph DB? elasticsearch elasticsearch

How can I perform a wildcard search on a vertex property in titan graph DB?


You can read about how to do string-based searches here:

https://github.com/thinkaurelius/titan/wiki/Full-Text-and-String-Search#string-search

In your case you would likely need to use a Text.REGEX based search as you want to evaluate both sides of the string. You would execute this with the Blueprints API using the Query API and would be something like:

graph.query().has("name",Text.REGEX,".*asdf.*").vertices()


In Gremlin v2 I do this:

g.v.has('name',REGEX,'.*asdf.*').map