0

我想使用 kundera 执行以下 mongodb 查询

 db.storemaster.find( { loc: { $near : {$geometry: { type: \"Point\",  coordinates: [ 78.35249829999998, 17.4613602 ] }, $maxDistance: 5000 } }})

帮我..

4

1 回答 1

2

你试过用吗?

String execScript = "db.storemaster.find( { loc: { $near : {$geometry: { type: \"Point\",  coordinates: [ 78.35249829999998, 17.4613602 ] }, $maxDistance: 5000 } }}).toArray()";

Object result = (client).executeScript(execScript);

查维

于 2015-01-07T13:08:09.387 回答