I go to the Mongo conmmand line (version 4.4.1) and do
db.places.dropIndexes() db.places.createIndex( { location : "2dsphere" , category1 : 1 } ) db