node_auto_index does not exist

孤街醉人 提交于 2019-12-07 16:23:30

问题


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

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!