我正在尝试使用Java Spring Boot执行MongoDB地理空间查询,但是我的查询未返回任何数据...
我的MongoDB集合“搜索者”文档结构为:
private async void Button_Click(object sender, RoutedEventArgs e)
{
{
testDialog dialog = new testDialog();
await dialog.ShowAsync();
}
}
我正在使用Java构建的查询是:
<TextBlock x:Uid="TestTextBlock" />
但是为什么给我空洞的结果呢?这有什么问题?我已经在数据库中的位置键上创建了2dsphere索引。
使用以下QueryBuilder。我正在获取所有文档,但不在附近的过滤器中。
{
"_id": "5c0384050ff0b40f0872865a",
"firstName": "Vikas",
"lastName": "Prasad",
"mobile": "9958846308",
"email": "iamvikasandc@gmail.com",
"location": {
"type": "Point",
"coordinates": [
77.31123,
28.50669
]
}
}