Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support $geoNear Pipeline Operator #138

Open
charliefoxrf opened this issue May 5, 2020 · 0 comments
Open

Support $geoNear Pipeline Operator #138

charliefoxrf opened this issue May 5, 2020 · 0 comments
Labels
good first issue Issues that are suitable for first-time contributors. help wanted Issues that need assistance from volunteers or PRs that need help to proceed.

Comments

@charliefoxrf
Copy link

Use of the $geoNear pipeline stage results in:

[Error 40324] Unrecognized pipeline stage name: '$geoNear'

It's clear it is not currently supported in de.bwaldvogel.mongo.backend.aggregation.Aggregation.java

Example Mongo query usage:

db.places.aggregate([
   {
     $geoNear: {
        near: { type: "Point", coordinates: [ -73.99279 , 40.719296 ] },
        distanceField: "dist.calculated",
        maxDistance: 2,
        query: { category: "Parks" },
        includeLocs: "dist.location",
        spherical: true
     }
   }
])
@bwaldvogel bwaldvogel added good first issue Issues that are suitable for first-time contributors. help wanted Issues that need assistance from volunteers or PRs that need help to proceed. labels May 23, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
good first issue Issues that are suitable for first-time contributors. help wanted Issues that need assistance from volunteers or PRs that need help to proceed.
Projects
None yet
Development

No branches or pull requests

2 participants