let's say I have two nodes with one edge as :
country ---> has ---> school
where, edge "has" has property called "since".
If I created lookup index for nodes and edges + edge property.
g.createKeyIndex('country', Vertex.class)
g.createKeyIndex('school', Vertex.class)
g.createKeyIndex('has', Edge.class)
How to create index on edge property(since).Or while creating index in edge "has". properties get indexed. Is it ?
in Neo4j.property I set as :
# Autoindexing
# Enable auto-indexing for nodes, default is false
node_auto_indexing=true
# The node property keys to be auto-indexed, if enabled
node_keys_indexable=country, school
# 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=since
but I don't want to create auto index through this property file but need in gremlin way before adding vertex/edges.
like in Titan way :
g.makeType().name('since').dataType(Date.class).unique(OUT).makePropertyKey()
how can it possible through simple neo4j + gremlin ?
am following :
http://www.tinkerpop.com/docs/javadocs/blueprints/2.1.0/com/tinkerpop/blueprints/KeyIndexableGraph.html#createKeyIndex(java.lang.String, java.lang.Class)