define geo index in ArangoDB
问题 I have a data structure like below. how can I define a geo index for that structure? { "currentGeoLocation": { "latitude": -10, "longitude": 1 } } I tried these command: 1- db.test.ensureIndex({ type: "geo", fields: [ "currentGeoLocation[latitude]","currentGeoLocation[longitude]" ] }); 2- db.test.ensureIndex({ type: "geo", fields: [ "currentGeoLocation.latitude","currentGeoLocation.longitude" ] }); but I think none works correctly. because after I search the nearest items, I got []. whats the