Im using OrientDB type graph. I need syntax of Gremlin for search same SQL LIKE operator
LIKE \'search%\' or LIKE \'%search%\'
I\'ve check
As one of the committers of the SimpleGraph project i know of the solution implemented in that project
https://github.com/BITPlan/com.bitplan.simplegraph/blob/master/simplegraph-core/src/main/java/com/bitplan/gremlin/RegexPredicate.java
Example
g().V().has("tosearch", RegexPredicate.regex("search.*"))
RegexPredicate
import java.util.function.BiPredicate;
import java.util.regex.Matcher;
import java.util.regex.Pattern;
import org.apache.tinkerpop.gremlin.process.traversal.P;
// https://groups.google.com/forum/#!topic/gremlin-users/heWLwz9xBQc
// https://stackoverflow.com/a/45652897/1497139
public class RegexPredicate implements BiPredicate