ReturnToZero
ReturnToZero

Reputation: 375

Possible to create an index on a label in py2neo?

I was wondering if it is possible to create an index on a label in py2neo? Like the Cypher: "CREATE INDEX ON :Person(name)"?

I think this is something that was added in Neo4j 2.0, so it might not be implemented in py2neo yet?

Thanks

Upvotes: 1

Views: 708

Answers (1)

jjaderberg
jjaderberg

Reputation: 9952

Yes, you should be able to manage label indices from py2neo, take a look at the Schema chapter. I think py2neo generally wraps cypher queries, so I would think the methods for schema management are equivalent to the different cypher schema statements.

And you can always execute your own queries directly, so anything you can do in cypher you can do in py2neo.

Upvotes: 2

Related Questions