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

ensureGeoIndex does not create index with GeoJSON fields set to true #202

Open
velvia opened this issue May 4, 2021 · 3 comments
Open

Comments

@velvia
Copy link

velvia commented May 4, 2021

ensureGeoIndex creates geo indexes with geoJson set to false

How much is this client maintained? I see almost no activity within the last year.

@tariqdaouda
Copy link
Collaborator

tariqdaouda commented May 4, 2021

It has been relatively stable recently (the next version is coming soon). I am still maintaining it by fixing bugs and adding features as needed. But as this is a community project now, unless there is a high demand for a feature I mainly concentrate on the ones I need and rely on pull requests for the rest. Feel free to send PRs.

@velvia
Copy link
Author

velvia commented May 5, 2021 via email

@dodgytricycle
Copy link

Instead of ensureGeoIndex, you could try creating a geo index using ensureIndex as it accepts additional index arguments.
collection.ensureIndex(index_type='geo', fields=['b'], name=None, geoJson=True)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants