how to create a unique index?

44 views
Skip to first unread message

Ranqi Zhu

unread,
May 16, 2013, 5:07:17 PM5/16/13
to gremli...@googlegroups.com
The default index type is non-unique?
Thank you!

RQ

Luca Garulli

unread,
May 16, 2013, 6:16:34 PM5/16/13
to gremlin-users
Hi Ranqui,
AFAIK Blueprints have only non-unique indexes. If you're using OrientDB pass the "type" optional parameter to "UNIQUE" when you create the index against a key:

graph.createKeyIndex("id", Vertex.class, new Parameter("type", "UNIQUE"));

Lvc@



--
You received this message because you are subscribed to the Google Groups "Gremlin-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to gremlin-user...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.
 
 

Reply all
Reply to author
Forward
0 new messages