Use better schema_type filter for file views

From #1650.