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

29 lines
494 B
Plaintext

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/822932363",
"type" : "geo2",
"fields" : [
"e",
"f"
],
"constraint" : false,
"unique" : false,
"ignoreNull" : true,
"sparse" : true,
"isNewlyCreated" : true,
"error" : false,
"code" : 201
}