You can use auto indexing. # Enable auto-indexing for relationships, default is false #relationship_auto_indexing=true
# The relationship property keys to be auto-indexed, if enabled #relationship_keys_indexable=name,age But if you want indexes like using labels, I think there is no labels for relationship for right now because as far as I know, you can only define relationship types not labels. Thank you. On Saturday, April 12, 2014 9:43:38 AM UTC+7, Reihane Boghrati wrote: > > Hi, > > I have a Neo4j database with two different nodes and four different > relationships. > I have index on the id of each node. But I was wondering if it's possible > to define index on relationships attributes as well? > -- You received this message because you are subscribed to the Google Groups "Neo4j" group. To unsubscribe from this group and stop receiving emails from it, send an email to neo4j+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout.