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