arangosh> db.ids.ensureIndex({ type: "skiplist", fields: [ "name.first", "name.last" ], unique: true });
{
"deduplicate" : true,
"fields" : [
"name.first",
"name.last"
],
"id" : "ids/16380",
"isNewlyCreated" : true,
"sparse" : false,
"type" : "skiplist",
"unique" : true,
"code" : 201
}
arangosh> db.ids.save({ "name" : { "first" : "hans", "last": "hansen" }});
{
"_id" : "ids/16383",
"_key" : "16383",
"_rev" : "_XiAwVNi--_"
}
arangosh> db.ids.save({ "name" : { "first" : "jens", "last": "jensen" }});
{
"_id" : "ids/16387",
"_key" : "16387",
"_rev" : "_XiAwVNi--B"
}
arangosh> db.ids.save({ "name" : { "first" : "hans", "last": "jensen" }});
{
"_id" : "ids/16390",
"_key" : "16390",
"_rev" : "_XiAwVNi--D"
}
[ArangoError 1210: unique constraint violated - in index 16380 of type skiplist over ["name.first","name.last"]; conflicting key: 16383]