orientdb-docs
orientdb-docs copied to clipboard
Unique composite index example is NOTUNIQUE
In the indicies section of Schema.md, the example creates a NOTUNIQUE index but the descriptive text states that it creates a unique composite index:
You can also constrain a group of properties as unique by creating a composite index made from multiple fields. For instance,
profile.createIndex("compositeIdx", OClass.INDEX_TYPE.NOTUNIQUE, "name", "surname");