index - property index
How to add a property index.
Synopsis
index('index_name').property('propertykey_name').by('meta-propertykey_name').add()
Description
A property index specifies an index that is built using the meta-property of a vertex property key in
DSE Graph. A vertex label must be specified. The index name must be unique. The property key
specified must have multiple
cardinality.
Examples
Create an index
byLocation
index using the property key
country
and meta-property key of livedIn
. The
vertex label is specified as
author
.schema().vertexLabel('author').index('byLocation').property('country').by('livedIn').add()