Quantcast
Channel: MarsHut
Viewing all articles
Browse latest Browse all 6551

Find by geolocation & fulltext search terms @mongodb 2.6

$
0
0
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.

Viewing all articles
Browse latest Browse all 6551

Trending Articles