How to search with cypher 2.0 case insensitive?

不问归期 提交于 2019-12-10 21:29:06

问题


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

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!