To create wildcard indexes, use a standard index creation command: :dbcommand:`createIndexes` :method:`~db.collection.createIndex()` :method:`~db.collection.createIndexes()`