1
0
Fork 0
arangodb/Documentation/Examples/RestIndexCreateSparseSkipli...

27 lines
475 B
Plaintext

shell> curl -X POST --data-binary @- --dump - http://localhost:8529/_api/index?collection=products <<EOF
{
"type" : "skiplist",
"unique" : false,
"sparse" : true,
"fields" : [
"a"
]
}
EOF
HTTP/1.1 201 Created
content-type: application/json; charset=utf-8
{
"id" : "products/826798987",
"type" : "skiplist",
"fields" : [
"a"
],
"unique" : false,
"sparse" : true,
"isNewlyCreated" : true,
"error" : false,
"code" : 201
}