Proper ensure_index command