finish query importing and index view