What locale are you running neo4j with? Java case insensitivity is locale dependend
Michael Von meinem iPhone gesendet > Am 30.11.2014 um 11:41 schrieb Alexepus <[email protected]>: > > There is StackOverflow question for regex case insensitivity support for > non-ASCII strings. That question does not have any answer for 7 months. > Now I can reproduce that scenario with latest community version of Neo4j > 2.1.6, and there is still no support for case insensitivity for non-ASCII > strings (at least with Ukrainian and Russian language). > > Assume we have two nodes: > CREATE (n:{Name:"Ivan"}) > CREATE (n:{Name:"Иван"}) > > Given that try to execute queries: > MATCH (n) WHERE n.Name =~ '(?i)Ivan.*' return n > -- returns 1 row > MATCH (n) WHERE n.Name =~ '(?i)ivan.*' return n > -- returns 1 row > MATCH (n) WHERE n.Name =~ '(?i)Иван.*' return n > -- returns 1 row > > MATCH (n) WHERE n.Name =~ '(?i)иван.*' return n > -- returns 0 rows (!) > -- > You received this message because you are subscribed to the Google Groups > "Neo4j" group. > To unsubscribe from this group and stop receiving emails from it, send an > email to [email protected]. > For more options, visit https://groups.google.com/d/optout. -- You received this message because you are subscribed to the Google Groups "Neo4j" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. For more options, visit https://groups.google.com/d/optout.
