Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

node_auto_index does not exist

Tags:

indexing

neo4j

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

like image 267
Balaji Venkataraman Avatar asked Jul 20 '26 07:07

Balaji Venkataraman


1 Answers

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
like image 186
Michael Hunger Avatar answered Jul 24 '26 16:07

Michael Hunger



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!