MongoDB geospatial query with $not

六眼飞鱼酱① 提交于 2019-12-04 04:24:58

I think this is not possible. As far as I know, location queries will give you a special cursor that can only use location queries as parameters (such as $within).

v. 2.0.1 gives a more descriptive error message: error: { "$err" : "geo field only has 1 element", "code" : 13068 }

The issue with indexing is that, in general, negation is EVIL. Most indexes don't cope well when you turn them around, so even if your query worked, it's probably not desirable because it will probably have to do a table scan.

I'm not entirely sure about this, a message to the newsgroup is probably a good idea.

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!