How Gremlin query same sql like for search feature
Im using OrientDB type graph. I need syntax of Gremlin for search same SQL LIKE operator LIKE 'search%' or LIKE '%search%' I've check with has and filter (in http://gremlindocs.com/ ). However it's must determine exact value is passed with type property. I think this is incorrect with logic of search. Thanks for anything. Daniel Kuppitz Try: g.V().filter({ it.getProperty("foo").startsWith("search") }) or g.V().filter({ it.getProperty("foo").contains("search") }) You can use filter with a bit of regex: gremlin> g = TinkerGraphFactory.createTinkerGraph() ==>tinkergraph[vertices:6 edges:6]