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