Is it possible to build index for labels in vertex
<p>I am trying to create index for vertex label.Vertex is created as below</p>

<pre><code>val v0 = graph + "A"
</code></pre>

<p>Each of my gremlin query based on vertex label.Getting below warining message</p>

<p><strong>WARN  c.t.t.g.transaction.StandardTitanTx - Query requires iterating over all vertices [(~label = 301)]. For better performance, use indexes</strong></p>

<p>Project used Titan + cassandra(Storage Backend), below are the SBT dependencies used,</p>

<pre><code>"com.michaelpollmeier" %% "gremlin-scala" % "3.0.2-incubating.2",
"com.thinkaurelius.titan" % "titan-core" % "1.0.0",
"com.thinkaurelius.titan" % "titan-cassandra" % "1.0.0",
"com.netflix.astyanax" % "astyanax-cassandra" % "3.9.0",
"com.netflix.astyanax" % "astyanax-core" % "3.9.0",
"com.netflix.astyanax" % "astyanax-thrift" % "3.9.0"
</code></pre>

<p>Created index as below,</p>

<pre><code>mgmt.makePropertyKey("endpoint").dataType(classOf[String]).m‌​ake(); 

mgmt.buildIndex("endpoint",classOf[Vertex]).addKey(name1).un‌​ique().buildComposit‌​eIndex() 

mgmt.commit() 

graph.tx().commit()
</code></pre>

<p>Getting this error </p>

<p>com.thinkaurelius.titan.core.SchemaViolationException: Adding this property for key [~T$SchemaName] and value [rtendpoint] violates a uniqueness constraint [SystemIndex#~T$SchemaName] </p>