Tag: cypher neo4jclient

批量插入节点和关系neo4jclient

我在列表中有很多节点和边。 目前我正在循环遍历列表并使用非常慢的查询插入每个节点。 如何使用neo4jclient执行批量插入? 节点对象: public class myNode { public int id { get; set; } public int floor { get; set; } public double x { get; set; } public double y { get; set; } } 插入节点的当前方法: public static void addNode(GraphClient client, myNode node, string nodeName) { client.Cypher .Create(“(” + nodeName + “:Node {node})”) […]

使用Neo4j中的索引

我一直在浏览Neo4J和Neo4J C#客户端.. neo4jclient wiki帮助我完成了节点crud操作..然而wiki突然终止了..我在源代码中 探索了测试方法并设法了解关系并在线搜索以了解索引是如何工作的。 到目前为止,这是我所拥有的,大致: //create indexing on user and car client.CreateIndex(“User”, new IndexConfiguration() { Provider = IndexProvider.lucene, Type = IndexType.fulltext }, IndexFor.Node); client.CreateIndex(“Car”, new IndexConfiguration() { Provider = IndexProvider.lucene, Type = IndexType.fulltext }, IndexFor.Node); //create user client.Create(new User() { Name = “Dovakiin”, Job = “Dragon Slayer” }); client.Create(new User() { Name = “Ulfric […]