Test reIndex by query