问题
How to search with cypher 2.0 / Neo4j 2.1.7 case insensitive on a indexed field?
- regex does not use index
WHERE a.X =~ ('(?i)' + b.Y) ...
- using lower() does not use index
WHERE lower(a.X) = lower(b.Y) ...
- adding a extra field with lower case property value for indexing is ugly
Not using the index will result in more them 2 mio DB Hits.
回答1:
For fulltext search using legacy indexes with Neo4j 2.x which is also case-insensitive check my blog post:
http://jexp.de/blog/2014/03/full-text-indexing-fts-in-neo4j-2-0/
来源:https://stackoverflow.com/questions/28744303/how-to-search-with-cypher-2-0-case-insensitive