I have a gremlin query like g.V().hasLabel('test').has('name',TextP.containing('ar')). But this query is doing case sensitive search. It is not returning me the vertices that has name Ar.
Suppose if I have 2 vertices under test label and they have names like Arhan and arhan. If I execute gremlin query g.V().hasLabel('test').has('name',TextP.containing('ar')), it is returning only arhan record. But I am expecting both the records to be retrieved irrespective of their case.
Your choices are going to depend on what CosmosDB supports. I believe the version of Gremlin supported is quite old.
Gremlin now has a
regexpredicate (added in TinkerPop 3.6.) and in the very latest version (3.7.0) has a selection of new string functions that allow lower and upper casing of strings before testing.Lastly, some implementations allow integration with an external full text search index.
I'm not sure if CosmosDB supports any of these options. If it does not, then the best you can really do is to test for all possible variations using
orlogic - which can get messy but may be your only option, along the lines of: