case insensitive search with string.Contains() #2007
Unanswered
nikotanghe
asked this question in
Q&A
Replies: 1 comment 4 replies
-
It is possible to use Hope it helps. |
Beta Was this translation helpful? Give feedback.
4 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
We're trying to perform a partial, case-insensitive search on a string property in our Gremlin query.
By default, the .Contains() method is case-sensitive, which doesn't meet our needs.
g.V().Where(s => s.Name.Contains(request.Name));
This works, but only for exact case matches.
We came across TextP.Containing, which seems promising for this use case,
but it's not entirely clear how to apply it for case-insensitive matching.
Has anyone implemented this successfully?
Any guidance or examples would be appreciated!
Beta Was this translation helpful? Give feedback.
All reactions