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
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
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With