arangosh> db.test.ensureIndex({ type: "skiplist", fields: [ "a[*]" ] });
{
"deduplicate" : true,
"fields" : [
"a[*]"
],
"id" : "test/110217",
"isNewlyCreated" : true,
"sparse" : false,
"type" : "skiplist",
"unique" : false,
"code" : 201
}
arangosh> db.test.save({ a : [ 1, 2 ] });
{
"_id" : "test/110220",
"_key" : "110220",
"_rev" : "_XUJzKuC--_"
}
arangosh> db.test.save({ a : [ 1, 3 ] });
{
"_id" : "test/110224",
"_key" : "110224",
"_rev" : "_XUJzKuC--B"
}
arangosh> db.test.save({ a : null });
{
"_id" : "test/110227",
"_key" : "110227",
"_rev" : "_XUJzKuG--_"
}