除非在创建后更新,否则无法在创建具有GeoSpatial Point的文档后查询该文档 [英] A document with a GeoSpatial Point cannot be queried after it is created unless it's updated after creation

查看:72
本文介绍了除非在创建后更新,否则无法在创建具有GeoSpatial Point的文档后查询该文档的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我创建的集合如下:



创建的文档如下所示:


{

解决方案

嗨罗宾,


您是否可以查看以下文档以确保设置了空间索引,如果不设置,则应将以下属性标头设置为true:  x-ms-documentdb-query-enable-scan


查询空间类型


我希望这些信息有所帮助,如果您仍然遇到问题,请继续对话。


问候,


Mike < a href ="https://docs.microsoft.com/en-us/azure/cosmos-db/geospatial#querying-spatial-types\"target ="_ blank">




I have a collection created like:

The created document looks like:

{

解决方案

Hi Robin,

Can you take a look at the following documentation to ensure that you have a spatial index set, and if you do not then you should have the following property header set to true: x-ms-documentdb-query-enable-scan

Querying spatial types

I hope this information helps, and please continue the dialog if you are still are experiencing issues.

Regards,

Mike



这篇关于除非在创建后更新,否则无法在创建具有GeoSpatial Point的文档后查询该文档的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
相关文章
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆