My keys are {coordinates: Array, category: String}. I ran the
following commands on the mongo shell:
> db.test_models.ensureIndex({coordinates : "geoHaystack", category : 1 }, { bucketSize : 0.1 })
> db.test_models.ensureIndex({coordinates : "geoHaystack", category : 1 }, { bucketSize : 0.01 })
The first one creates an index. The second one doesn't seem to do
anything (db.test_models.getIndexes() just returns the first index),
even if I provide an index name.
Is this a mongo bug?
> --
> You received this message because you are subscribed to the Google Groups "mongodb-user" group.
> To post to this group, send email to mongod...@googlegroups.com.
> To unsubscribe from this group, send email to mongodb-user...@googlegroups.com.
> For more options, visit this group at http://groups.google.com/group/mongodb-user?hl=en.
>
On Dec 2, 9:00 pm, Eliot Horowitz <el...@10gen.com> wrote:
> No - you can't have 2 indexes with the same fields and different bucket sizes.
> can file a feature request @http://jira.mongodb.org/
Feature request added: https://jira.mongodb.org/browse/SERVER-4420