indexes at document level mongo db code example Example: mongodb index db.collection.createIndex( { name: -1 } )