Deleting indexed nodes in Neo4j

前端 未结 1 1307
野趣味
野趣味 2021-01-19 02:03

In Neo4j, if I delete an indexed node do I have to remove that node from the index first or will the index be updated automatically?

Here is a small (untested) examp

相关标签:
1条回答
  • 2021-01-19 02:21

    When you delete a node, you have to remove the index first. If you want to remove all mentions of a node from the index, see below:

        IndexManager indexManager = db.index();
        Index<Node> index = indexManager.forNodes("indexName");
        index.remove(node);
    
    0 讨论(0)
提交回复
热议问题