Hi all, I have one beginner question.
Let's say that my mongo document looks like this:
_id: ....,
name: "...",
loc : { type : "Point" ,
coordinates : [ 40, 5 ]
},
comments: [
author:...
post:"....."
},
How to properly write a query that will only select documents released
within 20 kilometers that contain the search words in the comments?
Please if you know some tutorial, post a link here.
Thanks
For other MongoDB technical support options, see: http://www.mongodb.org/about/support/.
You received this message because you are subscribed to the Google Groups "mongodb-user" group.
To post to this group, send email to mongodb-user [ at ] googlegroups.com.
Visit this group at http://groups.google.com/group/mongodb-user.
To view this discussion on the web visit https://groups.google.com/d/msgid/mongodb-user/f8a6da1c-af6d-49f2-8c5e-ec44b418d4e4%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Let's say that my mongo document looks like this:
_id: ....,
name: "...",
loc : { type : "Point" ,
coordinates : [ 40, 5 ]
},
comments: [
author:...
post:"....."
},
How to properly write a query that will only select documents released
within 20 kilometers that contain the search words in the comments?
Please if you know some tutorial, post a link here.
Thanks
For other MongoDB technical support options, see: http://www.mongodb.org/about/support/.
You received this message because you are subscribed to the Google Groups "mongodb-user" group.
To post to this group, send email to mongodb-user [ at ] googlegroups.com.
Visit this group at http://groups.google.com/group/mongodb-user.
To view this discussion on the web visit https://groups.google.com/d/msgid/mongodb-user/f8a6da1c-af6d-49f2-8c5e-ec44b418d4e4%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.