2013-10-28 68 views

回答

1

我找到了一個很好的解決方案。 WriteBatch()有方法add_index_node 例如,

batch = neo4j.WriteBatch(graph_db) 
a = batch.create(node(name='Alice')) 
batch.add_index_node("people","name","alice",a) 
batch.submit()