Custom MongoDB API for indexes