Use an IndexingReader to get :file metadata for warning messages