Node_auto_index does not exist
I've created a dataset with some objects like Users, Media and their relationships. My file has neo4j.properties
automatic indexing enabled for both nodes and relationships. I also added an attribute 'type'
to node_keys_indexable
. However, when I get the following error when running the following requests.
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
source to share
did you add nodes before setting up automatic indexing?
Then you need to re-index your nodes, for example by running a cypher query like:
start n=node(*)
where has(n.type)
set n.type=n.type
This works well for small graphs, for larger ones to create it.
start n=node(*)
with n
skip 25000 limit 25000
where has(n.type)
set n.type=n.type
source to share