arangosh> db.example.ensureIndex({ type: "skiplist", fields: [ "a", "b" ] });
{
"deduplicate" : true,
"fields" : [
"a",
"b"
],
"id" : "example/74433",
"isNewlyCreated" : true,
"name" : "idx_1646382081922564096",
"selectivityEstimate" : 1,
"sparse" : false,
"type" : "skiplist",
"unique" : false,
"code" : 201
}
arangosh> var indexInfo = db.example.getIndexes();
arangosh> indexInfo;
[
{
"fields" : [
"_key"
],
"id" : "example/0",
"name" : "primary",
"selectivityEstimate" : 1,
"sparse" : false,
"type" : "primary",
"unique" : true
},
{
"deduplicate" : true,
"fields" : [
"a",
"b"
],
"id" : "example/74433",
"name" : "idx_1646382081922564096",
"selectivityEstimate" : 1,
"sparse" : false,
"type" : "skiplist",
"unique" : false
}
]
arangosh> db._dropIndex(indexInfo[0])
false
arangosh> db._dropIndex(indexInfo[1].id)
true
arangosh> indexInfo = db.example.getIndexes();
[
{
"fields" : [
"_key"
],
"id" : "example/0",
"name" : "primary",
"selectivityEstimate" : 1,
"sparse" : false,
"type" : "primary",
"unique" : true
}
]