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!