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

+3


source to share


2 answers


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

      

+6


source


I had the same symptom. The problem was that I had incorrectly written the name of the index keys in the neo4j config. Check that the nodes you create have properties that match the keys in neo4j.properties

.



0


source







All Articles