Reputation: 290
I'm having a frustrating problem; I have a database containing nodes with a label 'ABC'. I tried these two cypher queries:
MATCH (n:ABC)
USING INDEX n:ABC(ENTITY)
WHERE n.ENTITY = 'John Lennon'
RETURN n;
This one works fine. The second one, however, does not.
START n = node:ABC(ENTITY='John Lennon') RETURN n;
Where I get an error, Neo.ClientError.Schema.NoSuchIndex. I don't understand why?
Upvotes: 0
Views: 419
Reputation: 41706
You're mixing legacy indexes (2) and schema indexes (1).
Stick with schema indexes (1) - you don't even have to specify them.
Ignore legacy indexes if you don't have to do fulltext-search.
Upvotes: 2