Head's Up! These forums are read-only. All users and content have migrated. Please join us at community.neo4j.com.
10-04-2022 02:08 PM
Hello:
Currently, I am working Graph data model and soon going to ETL data from Snowflake. I want to make my Neo4j Graph Database properties case insensitive so that I can query MATCH without worrying about case sensitivity.
Any help setting up or configuring case insensitive at the creation of the Database or for all nodes\relationships properties is greatly appreciated.
Thanks.
Solved! Go to Solution.
10-04-2022 02:23 PM
Neo4j is case sensitive. You could save your string properties as lower case when loading your data using 'toLower()' on each. Then, you just need to make sure your matching string is lower case. You can also use case insensitive grep string searches by prepending your search string with '(?i)'
10-04-2022 02:33 PM
Only approach is to use 'toLower' function in your queries. Say a Person node has a property 'name' = "JoHn". The query:
MATCH (a:Person) WHERE toLower(a.name) = toLower("jOhN"). This will return the Person node.
10-04-2022 02:23 PM
Neo4j is case sensitive. You could save your string properties as lower case when loading your data using 'toLower()' on each. Then, you just need to make sure your matching string is lower case. You can also use case insensitive grep string searches by prepending your search string with '(?i)'
10-04-2022 02:33 PM
Only approach is to use 'toLower' function in your queries. Say a Person node has a property 'name' = "JoHn". The query:
MATCH (a:Person) WHERE toLower(a.name) = toLower("jOhN"). This will return the Person node.
10-04-2022 03:21 PM
Thank you all for your answers; I am from an SQL Server background, so I was looking for a similar configuration.
Thank you again.
All the sessions of the conference are now available online