Neo4jClient-是否从Neo4jClient中创建索引?

Neo4jClient-是否从Neo4jClient中创建索引?,neo4jclient,Neo4jclient,有没有办法从Neo4jClient中创建索引?我做了一个原始查询,但不认为这是最好的选择。我这样做的原因是出于测试目的,我需要删除/重新创建数据库以测试不同设计的性能。您可以执行以下操作: graphClient.Cypher .Create("INDEX ON :Label(Property)") .ExecuteWithoutResults(); 和限制条件,如: graphClient.Cypher .CreateUniqueConstraint("identit

有没有办法从Neo4jClient中创建索引?我做了一个原始查询,但不认为这是最好的选择。我这样做的原因是出于测试目的,我需要删除/重新创建数据库以测试不同设计的性能。

您可以执行以下操作:

graphClient.Cypher
    .Create("INDEX ON :Label(Property)")
    .ExecuteWithoutResults();
和限制条件,如:

graphClient.Cypher
    .CreateUniqueConstraint("identity", "property")
    .ExecuteWithoutResults();

(原稿)

谢谢!没有想过使用相同的Create()方法。