问题
I have created the data set with some entities like Users, Media and their relationships. My neo4j.properties
file has auto indexing turned on for both nodes and relationships. I have also added an attribute 'type'
to node_keys_indexable
. However when I get the following error when running the following queries.
START user =node:node_auto_index(fn="Balaji")
RETURN user.ln
Error: Index `node_auto_index` does not exist
I am new to neo4j
. Appreciate any help.
Thanks and Regards Balaji
回答1:
did you add the nodes before you configured autoindexing?
Then you have to reindex your nodes, by for instance running a cypher query like this:
start n=node(*)
where has(n.type)
set n.type=n.type
This works well for small graphs, for larger ones you have to page it.
start n=node(*)
with n
skip 25000 limit 25000
where has(n.type)
set n.type=n.type
回答2:
I had the same symptom. The problem was that I had misspelled the name of the index keys in the neo4j config. Check the nodes you have created have properties that match the keys in neo4j.properties
.
来源:https://stackoverflow.com/questions/14865128/node-auto-index-does-not-exist