You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
For debugging purposes add the following code to \Doctrine\ODM\MongoDB\SchemaManager::updateDocumentIndexes, right before $collection->dropIndex(...):
dump('Dropping index ' . $mongoIndex['name'] . ' on ' . $documentName);
Run:
$ bin/console doctrine:mongodb:schema:update
Dropping index coordinates_2dsphere on GeoIndexDocument
Updated indexes for all classes
Updated validation for all classes
Expected behavior
Do not drop/re-create 2dsphere indexes
The text was updated successfully, but these errors were encountered:
Bug Report
Summary
Indexes of type
2dsphere
are always re-created.Current behavior
Because the server-side options contain a
2dsphereIndexVersion
a mismatch is caused when comparing index options.How to reproduce
For debugging purposes add the following code to \Doctrine\ODM\MongoDB\SchemaManager::updateDocumentIndexes, right before $collection->dropIndex(...):
Run:
Expected behavior
Do not drop/re-create 2dsphere indexes
The text was updated successfully, but these errors were encountered: