Kundera Mongodb附近的地方

时间:2015-01-06 03:30:57

标签: mongodb kundera

我想使用kundera

在mongodb查询下执行
 db.storemaster.find( { loc: { $near : {$geometry: { type: \"Point\",  coordinates: [ 78.35249829999998, 17.4613602 ] }, $maxDistance: 5000 } }})

帮帮我......

1 个答案:

答案 0 :(得分:2)

你尝试过使用吗?

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

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

Chhavi