Neo4j 2.0: advanced queries on label-based indexes possible?

落爺英雄遲暮 提交于 2019-12-10 17:36:35

问题


Neo4j's legacy indexes offer functionality like doing Lucene queries on them, or indexing arbitrary key/value pairs.

For example, if my User node looks like this: (me { FirstName: 'John', LastName: 'Doe'}), I can put this user in a legacy index with a key of FullName, a value of 'john doe', and I can get this user and other users whose name starts with a 'j' with this Cypher query:

start withj=node:User("FullName:j*") return withj;

I'm thinking of converting my legacy index based application to Neo4j 2.0's label based indexes. Do these new indexes also offer this functionality or only searches on exact matches? Should I stick to legacy indexes for this kind of queries, or are there alternatives?

Thanks!

来源:https://stackoverflow.com/questions/19787219/neo4j-2-0-advanced-queries-on-label-based-indexes-possible

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