Update indexes at query time