Search
Star
Feedback
Setup for Free
© 2026 Hedgehog Software, LLC
Twitter
GitHub
Discord
System
Light
Dark
More
Communities
Docs
About
Terms
Privacy
within() and case insensitive - Apache TinkerPop
AT
Apache TinkerPop
•
3y ago
•
5 replies
Dseguy
within() and case insensitive
I need to check if a property of a node is in a list of values
. How can I do that in a case insensitive manner
?
has
(
'name
'
,within
(
'vadas
'
,
'josh
'
)
)
(
+ case
_insensitive
?
)
I can do that naughty step
:
filter
{ it
.get
(
)
.values
(
'name
'
)
.toLowerCase
(
) in
[
'vadas
'
,
'josh
'
]
;
}
I guess I can also duplicate that
'name
' and make another property with the lowercase version of
'name
' so within works
.
Any other suggestion
?
Solution
TextP.regex
TextP.regex
can be used
, something like
g.V().has("name", TextP.regex("(?i)^(vadas|josh)$"))
g.V().has("name", TextP.regex("(?i)^(vadas|josh)$"))
Jump to solution
Apache TinkerPop
Join
Apache TinkerPop is an open source graph computing framework and the home of the Gremlin graph query language.
1,376
Members
View on Discord
Resources
ModelContextProtocol
ModelContextProtocol
MCP Server
Recent Announcements
Similar Threads
Was this page helpful?
Yes
No
Similar Threads
Dynamic select within query not working.
AT
Apache TinkerPop / questions
2y ago
valueMap and Multivalues
AT
Apache TinkerPop / questions
3y ago
Indexing and Query Performance
AT
Apache TinkerPop / questions
5mo ago
Transaction Exceptions and Retries
AT
Apache TinkerPop / questions
6mo ago