Skip to content

GPMONGODB-403: Index isn't created #446

@graemerocher

Description

@graemerocher

Original Reporter: sgatzke
Environment: Not Specified
Version: 3.0.1
Migrated From: http://jira.grails.org/browse/GPMONGODB-403

class Address {
...
Point location

static constraints = {

....
}

static mapping = {
    location geoIndex: '2dsphere'
}

}

If you create a mapping for a Domain-Class that needs to create an Index for the collection in mongo DB, it will be ignore by the plugin.
So the index geoIndex isn't create when the application starts up and create the collection for the Domain-Class.

If you change the Domain-Class code change during the application is running the index gets created.

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions