Gremlin lower case / upper case

287 views
Skip to first unread message

Srinath Ganesh

unread,
Jul 4, 2018, 5:05:01 AM7/4/18
to Gremlin-users

Based on the Modern Graph,

When I do a between search for a name, it seems to be case sensitive

gremlin> g.V().has("name", between("m", "mz")).values("name")
==>marko
gremlin> g.V().has("name", between("M", "Mz")).values("name")
gremlin> 

I looked up but did not find a lower() or upper(), what I am trying to do is lower(x) == lower(y) so that the above becomes case in-sensitive.

Stephen Mallette

unread,
Jul 4, 2018, 6:27:34 AM7/4/18
to Gremlin-users
I answered on SO, but i'll write here for the benefit of others what I wrote in the comments there. If you need some text search capability you should really choose a graph that supports it more cleanly. This workaround isn't mean to get very advanced at all.

--
You received this message because you are subscribed to the Google Groups "Gremlin-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to gremlin-user...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/gremlin-users/2ec3fbb7-2afd-42d8-bdbb-dacfdf463161%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Reply all
Reply to author
Forward
0 new messages